Searched hist:ea9d1f30b128c2bc5f429b3bd822b45ac9bf5114 (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_vcap.h | diff ea9d1f30b128c2bc5f429b3bd822b45ac9bf5114 Fri Oct 02 14:02:20 CEST 2020 Vladimir Oltean <vladimir.oltean@nxp.com> net: mscc: ocelot: offload multiple tc-flower actions in same rule
At this stage, the tc-flower offload of mscc_ocelot can only delegate rules to the VCAP IS2 security enforcement block. These rules have, in hardware, separate bits for policing and for overriding the destination port mask and/or copying to the CPU. So it makes sense that we attempt to expose some more of that low-level complexity instead of simply choosing between a single type of action.
Something similar happens with the VCAP IS1 block, where the same action can contain enable bits for VLAN classification and for QoS classification at the same time.
So model the action structure after the hardware description, and let the high-level ocelot_flower.c construct an action vector from multiple tc actions.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | ocelot_vcap.c | diff ea9d1f30b128c2bc5f429b3bd822b45ac9bf5114 Fri Oct 02 14:02:20 CEST 2020 Vladimir Oltean <vladimir.oltean@nxp.com> net: mscc: ocelot: offload multiple tc-flower actions in same rule
At this stage, the tc-flower offload of mscc_ocelot can only delegate rules to the VCAP IS2 security enforcement block. These rules have, in hardware, separate bits for policing and for overriding the destination port mask and/or copying to the CPU. So it makes sense that we attempt to expose some more of that low-level complexity instead of simply choosing between a single type of action.
Something similar happens with the VCAP IS1 block, where the same action can contain enable bits for VLAN classification and for QoS classification at the same time.
So model the action structure after the hardware description, and let the high-level ocelot_flower.c construct an action vector from multiple tc actions.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | ocelot_flower.c | diff ea9d1f30b128c2bc5f429b3bd822b45ac9bf5114 Fri Oct 02 14:02:20 CEST 2020 Vladimir Oltean <vladimir.oltean@nxp.com> net: mscc: ocelot: offload multiple tc-flower actions in same rule
At this stage, the tc-flower offload of mscc_ocelot can only delegate rules to the VCAP IS2 security enforcement block. These rules have, in hardware, separate bits for policing and for overriding the destination port mask and/or copying to the CPU. So it makes sense that we attempt to expose some more of that low-level complexity instead of simply choosing between a single type of action.
Something similar happens with the VCAP IS1 block, where the same action can contain enable bits for VLAN classification and for QoS classification at the same time.
So model the action structure after the hardware description, and let the high-level ocelot_flower.c construct an action vector from multiple tc actions.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|