lkml.org 
[lkml]   [2018]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next v2] net: mvpp2: Add hardware offloading for VLAN filtering
From
From: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: Wed, 28 Feb 2018 10:14:13 +0100

> Marvell PPv2 controller allows for generic packet filtering. This commit
> adds entries to implement VLAN filtering. The approach taken is :
>
> - Filter entries that would match on the presence of the VLAN tag
> (existing VLAN detection, DSA / EDSA detection) will set the next
> lookup ID to be for the VID.
>
> - For each VLAN existing on a given port, we add an entry that matches
> this specific VID. If the incoming packet matches the VID entry, it is
> set for the next lookup in the chain (LU_L2).
>
> - A Guard entry is added for each port, that will match if the incoming
> packet didn't match any of the above VID entries. This entry tags the
> packet to be dropped.
>
> Due to this design, and the fact that the total 256 filter entries are
> also used for other purposes, we have a limit of 10 VLANs per port. To
> accommodate the case where we would need more VLANS on one port, this
> patch implements the ndo_set_features to allow for disabling of VLAN
> filtering using ethtool.
>
> The default config has VLAN filtering disabled.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
> ---
> V2: Use correct order for local variable declarations

That looks better, applied, thank you.

\
 
 \ /
  Last update: 2018-02-28 18:05    [W:0.046 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site