[ovs-git] [openvswitch/ovs] 75e1e6: lib/tc: add ICMP type and code match offload
Simon Horman
noreply at github.com
Mon Feb 1 16:45:29 UTC 2021
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 75e1e6fd2d6beee90e7eff5ce8059c44aa67c0ec
https://github.com/openvswitch/ovs/commit/75e1e6fd2d6beee90e7eff5ce8059c44aa67c0ec
Author: Maor Dickman <maord at nvidia.com>
Date: 2021-02-01 (Mon, 01 Feb 2021)
Changed paths:
M lib/netdev-offload-tc.c
M lib/tc.c
M lib/tc.h
Log Message:
-----------
lib/tc: add ICMP type and code match offload
Add TC offload support for classifying ICMPv4/6 type and code.
$ ovs-appctl dpctl/add-flow 'recirc_id(0),in_port(3),eth(),\
eth_type(0x0800),ipv4(proto=1),icmp(type=9,code=0)' 2
$ ovs-appctl dpctl/dump-flows
... icmp(type=9,code=0) ...
$ tc filter show dev <ethx> ingress
...
eth_type ipv4
ip_proto icmp
icmp_type 9
icmp_code 0
not_in_hw
action order 1: mirred (Egress Redirect to device <ethy>) stolen
...
Signed-off-by: Maor Dickman <maord at nvidia.com>
Reviewed-by: Roi Dayan <roid at nvidia.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>
More information about the git
mailing list