cxgb4: set filter type to 1 for ETH_P_IPV6
authorKumar Sanghvi <kumaras@chelsio.com>
Wed, 17 Jan 2018 06:43:33 +0000 (12:13 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 20:26:56 +0000 (15:26 -0500)
For ethtype_key = ETH_P_IPV6, set filter type as 1 in cxgb4_tc_flower
code when processing flow match parameters.

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c

index d4a548a6a55cd9d4793a282e231414143a139324..276edcbb3259d679184eda5ac5adeee9d15d23ab 100644 (file)
@@ -111,6 +111,9 @@ static void cxgb4_process_flow_match(struct net_device *dev,
                        ethtype_mask = 0;
                }
 
+               if (ethtype_key == ETH_P_IPV6)
+                       fs->type = 1;
+
                fs->val.ethtype = ethtype_key;
                fs->mask.ethtype = ethtype_mask;
                fs->val.proto = key->ip_proto;