提交 68074bb1 编写于 作者: S Steve Wise 提交者: Roland Dreier

RDMA/cxgb4: Use correct bit shift macros for vlan filter tuples

Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 830662f6
...@@ -546,7 +546,7 @@ static unsigned int select_ntuple(struct c4iw_dev *dev, struct dst_entry *dst, ...@@ -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; ntuple |= FILTER_SEL_VLAN_NONE << FILTER_SEL_WIDTH_P_FC;
else { else {
ntuple |= l2t->vlan << FILTER_SEL_WIDTH_P_FC; 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 << ntuple |= l2t->lport << S_PORT | IPPROTO_TCP <<
FILTER_SEL_WIDTH_VLD_TAG_P_FC; FILTER_SEL_WIDTH_VLD_TAG_P_FC;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册