On 1/18/2021 8:17 AM, Vladimir Oltean wrote: > From: Vladimir Oltean <vladimir.olt...@nxp.com> > > We will be adding some private VCAP filters that should not interfere in > any way with the filters added using tc-flower. So we need to allocate > some IDs which will not be used by tc. > > Currently ocelot uses an u32 id derived from the flow cookie, which in > itself is an unsigned long. This is a problem in itself, since on 64 bit > systems, sizeof(unsigned long)=8, so the driver is already truncating > these. > > Create a struct ocelot_vcap_id which contains the full unsigned long > cookie from tc, as well as a boolean that is supposed to namespace the > filters added by tc with the ones that aren't. > > Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- [PATCH v3 net-next 12/15] net: mscc: ocelot: refactor oc... Vladimir Oltean
- [PATCH v3 net-next 05/15] net: mscc: ocelot: stop return... Vladimir Oltean
- Re: [PATCH v3 net-next 05/15] net: mscc: ocelot: st... Florian Fainelli
- [PATCH v3 net-next 07/15] net: mscc: ocelot: just flush ... Vladimir Oltean
- [PATCH v3 net-next 10/15] net: mscc: ocelot: refactor oc... Vladimir Oltean
- Re: [PATCH v3 net-next 10/15] net: mscc: ocelot: re... Vladimir Oltean
- Re: [PATCH v3 net-next 10/15] net: mscc: ocelot: re... kernel test robot
- [PATCH v3 net-next 14/15] net: dsa: felix: use promisc o... Vladimir Oltean
- [PATCH v3 net-next 06/15] net: mscc: ocelot: only drain ... Vladimir Oltean
- [PATCH v3 net-next 03/15] net: mscc: ocelot: store a nam... Vladimir Oltean
- Re: [PATCH v3 net-next 03/15] net: mscc: ocelot: st... Florian Fainelli
- [PATCH v3 net-next 08/15] net: mscc: ocelot: better erro... Vladimir Oltean
- [PATCH v3 net-next 09/15] net: mscc: ocelot: use DIV_ROU... Vladimir Oltean
- [PATCH v3 net-next 02/15] net: mscc: ocelot: export VCAP... Vladimir Oltean
- Re: [PATCH v3 net-next 02/15] net: mscc: ocelot: ex... Florian Fainelli
- [PATCH v3 net-next 01/15] net: dsa: tag_8021q: add helpe... Vladimir Oltean
- Re: [PATCH v3 net-next 01/15] net: dsa: tag_8021q: ... Florian Fainelli