RDMA/cxgb4: Use correct bit shift macros for vlan filter tuples
authorSteve Wise <swise@opengridcomputing.com>
Tue, 6 Aug 2013 15:34:33 +0000 (21:04 +0530)
committerRoland Dreier <roland@purestorage.com>
Tue, 13 Aug 2013 18:55:43 +0000 (11:55 -0700)
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cm.c

index 3f17c01329ec290aa89f58282618a29747119f7b..6ee5d8415f58cb34597efd40ace88b205ff60bdc 100644 (file)
@@ -546,7 +546,7 @@ static unsigned int select_ntuple(struct c4iw_dev *dev, struct dst_entry *dst,
                        ntuple |= FILTER_SEL_VLAN_NONE << FILTER_SEL_WIDTH_P_FC;
                else {
                        ntuple |= l2t->vlan << FILTER_SEL_WIDTH_P_FC;
-                       ntuple |= 1 << FILTER_SEL_WIDTH_VLD_TAG_P_FC;
+                       ntuple |= 1 << FILTER_SEL_WIDTH_TAG_P_FC;
                }
                ntuple |= l2t->lport << S_PORT | IPPROTO_TCP <<
                          FILTER_SEL_WIDTH_VLD_TAG_P_FC;