forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovs-tc: allow offloading of ingress mirred TC actions to datapath
The TC datapath only permits the offload of mirred actions if they are egress. To offload TC actions that output to OvS internal ports, ingress mirred actions are required. At the TC layer, an ingress mirred action passes the packet back into the network stack as if it came in the action port rather than attempting to egress the port. Update OvS-TC offloads to support ingress mirred actions. To ensure packets that match these rules are properly passed into the network stack, add a TC skbedit action along with ingress mirred that sets the pkt_type to PACKET_HOST. This mirrors the functionality of the OvS internal port kernel module. Signed-off-by: John Hurley <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Simon Horman <[email protected]>
- Loading branch information
1 parent
7808b2b
commit 4aa2dc0
Showing
3 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters