[Intel-wired-lan] [PATCH v2] ixgbe: Prevent unsupported configurations with XDP
Bowers, AndrewX
andrewx.bowers at intel.com
Thu Aug 2 18:27:01 UTC 2018
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Monday, July 30, 2018 3:53 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: jakub.kicinski at netronome.com
> Subject: [Intel-wired-lan] [PATCH v2] ixgbe: Prevent unsupported
> configurations with XDP
>
> These changes address comments by Jakub Kicinski on commit 38b7e7f8ae82
> ("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 at netronome.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> v2:
> Added check for L2FW offload and updated description.
>
> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 28
> ++++++++++++++++++++++++--
> drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 5 +++++
> 2 files changed, 31 insertions(+), 2 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list