From c22ab9fb157fcf5772162a319bd0ee288008902c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 11 May 2018 09:10:01 -0700 Subject: [PATCH] netdev-tc-offloads: Fix incorrect mask in probe_multi_mask_per_prio(). Presumably this was meant to be all-one-bits but it wasn't. It also didn't have the right endianness for an ovs_be16, so "sparse" complained. CC: Paul Blakey CC: Simon Horman Fixes: d00eeded6a9b ("netdev-tc-offloads: Probe for allowing multiple masks on single priority") Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- lib/netdev-tc-offloads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-tc-offloads.c b/lib/netdev-tc-offloads.c index 7bac62ac3..69d6533e4 100644 --- a/lib/netdev-tc-offloads.c +++ b/lib/netdev-tc-offloads.c @@ -1213,7 +1213,7 @@ probe_multi_mask_per_prio(int ifindex) memset(&flower, 0, sizeof flower); flower.key.eth_type = htons(ETH_P_IP); - flower.mask.eth_type = 0xfff; + flower.mask.eth_type = OVS_BE16_MAX; memset(&flower.key.dst_mac, 0x11, sizeof flower.key.dst_mac); memset(&flower.mask.dst_mac, 0xff, sizeof flower.mask.dst_mac); -- 2.39.5