]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add IPv6 traffic class (DSCP) header rewrite support
authorMaor Dickman <maord@nvidia.com>
Thu, 3 Sep 2020 08:02:10 +0000 (11:02 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Sep 2020 18:59:53 +0000 (11:59 -0700)
commitf0f48736a1793971c6d111718be90f8e827926ea
tree8d88c060a139c3e55b87e9d434e4a213198067f9
parent24edce001243f84874d94b5ed5958e99e4a2f7cb
net/mlx5e: Add IPv6 traffic class (DSCP) header rewrite support

Add support for rewriting of IPV6 DSCP part of traffic class field.
Next commands, for example, can be used to offload rewrite action:

OVS:
 $ ovs-ofctl add-flow ovs-sriov "tcpv6, in_port=REP, \
       actions=mod_nw_tos:68, output:NIC"

iproute2:
 $ tc filter add dev REP ingress protocol ipv6 prio 1 flower skip_sw \
       ip_proto tcp \
       action pedit ex munge ip6 traffic_class set 68 retain 0xfc pipe \
       action mirred egress redirect dev NIC

Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c