[Intel-wired-lan] [PATCH v3] i40e: Add macvlan support on i40e
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Feb 8 22:07:13 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Harshitha Ramamurthy
> Sent: Wednesday, January 16, 2019 3:54 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Duyck, Alexander H <alexander.h.duyck at intel.com>
> Subject: [Intel-wired-lan] [PATCH v3] i40e: Add macvlan support on i40e
>
> This patch enables macvlan offloads for i40e. The idea is to use channels as
> macvlan interfaces. The channels are VSIs of type VMDQ. When the first
> macvlan is created, the maximum number of channels possible are created.
> From then on, as a macvlan interface is created, a mac filter is added to these
> already created channels (VSIs).
>
> This patch builds on top of the recent changes which move away from the
> select_queue implementation of picking the tx queue.
>
> Steps to configure macvlan offloads:
> 1. sudo ethtool -K ens261f1 l2-fwd-offload on 2. ip link add link ens261f1
> name macvlan1 type macvlan 3. sudo ip link add link ens261f1 name macvlan1
> type macvlan 4. sudo ip link set macvlan1 up
>
> Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy at intel.com>
> ---
> v3: Renamed i40e_remove_macvlan_channels() to
> i40e_free_macvlan_channels()
> Fixed an indentation issue and added some comments
> Removed a code name from the commit message
> Addressed some more of Shannon's comments
>
> v2: Addressed Shannon's comments
> Added a new function to remove all macvlan VSIs
>
> drivers/net/ethernet/intel/i40e/i40e.h | 26 ++
> drivers/net/ethernet/intel/i40e/i40e_main.c | 481 +++++++++++++++++++-
> 2 files changed, 505 insertions(+), 2 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list