summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoi Dayan <roid@mellanox.com>2020-06-16 16:03:57 +0300
committerSimon Horman <simon.horman@netronome.com>2020-06-19 08:51:11 +0200
commit1fe42975639854bc6cf4784b2554b438301c0b92 (patch)
tree454462a222756cdf47a1615f9d0f531c75c30d55 /include
parentfecb28051b357c636d7a5fed8ad5bb9add4f5b44 (diff)
downloadopenvswitch-1fe42975639854bc6cf4784b2554b438301c0b92.tar.gz
netdev-offload-tc: Revert tunnel src/dst port masks handling
The cited commit intended to add tc support for masking tunnel src/dst ips and ports. It's not possible to do tunnel ports masking with openflow rules and the default mask for tunnel ports set to 0 in tnl_wc_init(), unlike tunnel ports default mask which is full mask. So instead of never passing tunnel ports to tc, revert the changes to tunnel ports to always pass the tunnel port. In sw classification is done by the kernel, but for hw we must match the tunnel dst port. Fixes: 5f568d049130 ("netdev-offload-tc: Allow to match the IP and port mask of tunnel") Signed-off-by: Roi Dayan <roid@mellanox.com> Reviewed-by: Eli Britstein <elibr@mellanox.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'include')
-rw-r--r--include/openvswitch/match.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/openvswitch/match.h b/include/openvswitch/match.h
index 9e480318e..2e8812048 100644
--- a/include/openvswitch/match.h
+++ b/include/openvswitch/match.h
@@ -105,9 +105,6 @@ void match_set_tun_flags(struct match *match, uint16_t flags);
void match_set_tun_flags_masked(struct match *match, uint16_t flags, uint16_t mask);
void match_set_tun_tp_dst(struct match *match, ovs_be16 tp_dst);
void match_set_tun_tp_dst_masked(struct match *match, ovs_be16 port, ovs_be16 mask);
-void match_set_tun_tp_src(struct match *match, ovs_be16 tp_src);
-void match_set_tun_tp_src_masked(struct match *match,
- ovs_be16 port, ovs_be16 mask);
void match_set_tun_gbp_id_masked(struct match *match, ovs_be16 gbp_id, ovs_be16 mask);
void match_set_tun_gbp_id(struct match *match, ovs_be16 gbp_id);
void match_set_tun_gbp_flags_masked(struct match *match, uint8_t flags, uint8_t mask);