From: Wenzhuo Lu Date: Fri, 5 Jun 2015 05:21:37 +0000 (+0800) Subject: ixgbe/base: fix tunnelled UDP and TCP frames in flow director X-Git-Tag: spdx-start~9099 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5f79e8a7ce95b3f83c90569469934819e3cf2679;p=dpdk.git ixgbe/base: fix tunnelled UDP and TCP frames in flow director All bits in FDIRTCPM and FDIRUDPM are set to 1 when ixgbe_fdir_set_input_mask_82599 is called. Not settings these bits will cause TCP and UDP packets to be filtered out when NVGRE or VXLAN mode is enabled. Signed-off-by: Wenzhuo Lu Acked-by: Helin Zhang --- diff --git a/drivers/net/ixgbe/base/ixgbe_82599.c b/drivers/net/ixgbe/base/ixgbe_82599.c index d3d8c6f720..90de625ba9 100644 --- a/drivers/net/ixgbe/base/ixgbe_82599.c +++ b/drivers/net/ixgbe/base/ixgbe_82599.c @@ -1915,7 +1915,12 @@ s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw, } IXGBE_WRITE_REG_BE32(hw, IXGBE_FDIRIP6M, fdirip6m); - /* Set all bits in FDIRSIP4M and FDIRDIP4M cloud mode */ + /* Set all bits in FDIRTCPM, FDIRUDPM, FDIRSIP4M and + * FDIRDIP4M in cloud mode to allow L3/L3 packets to + * tunnel. + */ + IXGBE_WRITE_REG(hw, IXGBE_FDIRTCPM, 0xFFFFFFFF); + IXGBE_WRITE_REG(hw, IXGBE_FDIRUDPM, 0xFFFFFFFF); IXGBE_WRITE_REG_BE32(hw, IXGBE_FDIRDIP4M, 0xFFFFFFFF); IXGBE_WRITE_REG_BE32(hw, IXGBE_FDIRSIP4M, 0xFFFFFFFF); }