pkgdep/git: Patch for ice targeting latest 5.19 kernels
Currently, fedora36 is shipped with the 5.19 kernel. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: Ia575e5063aa98819ed0e66ffee1e0aaac995f4fa Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14244 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
3e917320b9
commit
370a63e2b9
@ -514,6 +514,10 @@ function install_ice() {
|
||||
patch --dir="$GIT_REPOS/ice-$ICE_VERSION" -p1
|
||||
fi < "$rootdir/test/common/config/pkgdep/patches/ice/0001-ringparam-incompatible-pointer-types.patch"
|
||||
|
||||
if ge "$kernel_ver" 5.19.0; then
|
||||
patch --dir="$GIT_REPOS/ice-$ICE_VERSION" -p1
|
||||
fi < "$rootdir/test/common/config/pkgdep/patches/ice/0001-ext-ack.patch"
|
||||
|
||||
(
|
||||
cd "$GIT_REPOS/ice-$ICE_VERSION/src"
|
||||
sudo make -j"$(nproc)" install
|
||||
|
23
test/common/config/pkgdep/patches/ice/0001-ext-ack.patch
Normal file
23
test/common/config/pkgdep/patches/ice/0001-ext-ack.patch
Normal file
@ -0,0 +1,23 @@
|
||||
This essentially duplicates a portion of the following patch that's already
|
||||
available in the upstream version of the ice driver:
|
||||
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ca4567f1e6f66
|
||||
|
||||
---
|
||||
src/ice_main.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/ice_main.c b/src/ice_main.c
|
||||
index ab5e57c..a81502f 100644
|
||||
--- a/src/ice_main.c
|
||||
+++ b/src/ice_main.c
|
||||
@@ -6951,7 +6951,7 @@ ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[],
|
||||
static int
|
||||
ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[],
|
||||
struct net_device *dev, const unsigned char *addr,
|
||||
- __always_unused u16 vid)
|
||||
+ __always_unused u16 vid, struct netlink_ext_ack *extack)
|
||||
#else
|
||||
static int
|
||||
ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[],
|
||||
--
|
Loading…
Reference in New Issue
Block a user