]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Prevent unsupported configurations with XDP
authorTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 30 Jul 2018 22:52:48 +0000 (15:52 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 24 Aug 2018 15:52:35 +0000 (08:52 -0700)
commit5166c2a29549bb995dd5621657212b2522421c03
treed2bddb5c35a3eb93c321a3f88fbfe26c1b3ab892
parent3cc0b168eea505ddcbe12693ffd5449528b6eb73
ixgbe: Prevent unsupported configurations with XDP

These changes address comments by Jakub Kicinski on
commit 1a42a4286353 ("ixgbe: Do not allow LRO or MTU change with XDP").

Change the MTU check with XDP to allow any supported value and only
reject those outside of the range as opposed to rejecting any change
when XDP is active. In situations where MTU size is not supported,
return -EINVAL instead of -EPERM.

Add checks when enabling SRIOV, DCB, or adding L2FW offloaded device
as they are not supported with XDP.

CC: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c