Re: [PATCH net-next] net: mvpp2: Add hardware offloading for VLAN filtering

2018-02-27 Thread David Miller
From: Maxime Chevallier Date: Tue, 27 Feb 2018 10:11:43 +0100 > +/* Find tcam entry with matched pair */ > +static int mvpp2_prs_vid_range_find(struct mvpp2 *priv, int pmap, u16 vid, > + u16 mask) > +{ > + struct mvpp2_prs_entry pe; > + unsigned char byte[

[PATCH net-next] net: mvpp2: Add hardware offloading for VLAN filtering

2018-02-27 Thread Maxime Chevallier
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