[Intel-wired-lan] [PATCH v3] i40e: Add macvlan support on i40e

Shannon Nelson shannon.lee.nelson at gmail.com
Wed Feb 6 17:56:45 UTC 2019

On Wed, Jan 16, 2019 at 3:54 PM Harshitha Ramamurthy
<harshitha.ramamurthy at intel.com> wrote:
> 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>

Hi Harshitha, thanks for your patience, I've had a challenging couple of weeks.

The only heartburn I have at this point is the hard-coded numbers in
fwd_add when working out how many queues to set aside for macvlan
offloads.  I'd rather see those as fractions of a constant, where that
constant might change for different i40e devices.  However, I realize
the xl7xx family probably won't change there, so it will probably be

Ack-by: Shannon Nelson <shannon.lee.nelson at gmail.com>


More information about the Intel-wired-lan mailing list