]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Include TCP as protocol when creating server filters
authorKumar Sanghvi <kumaras@chelsio.com>
Wed, 18 Dec 2013 11:08:20 +0000 (16:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Dec 2013 23:09:07 +0000 (18:09 -0500)
commit357682eb503c85b9c077ac101a6f4a0be0cdfe1c
treede3f741eb253821a442541a023af57b685abed42
parenta1b1e955f60a11582dcb4e8dda95317b3ce78edc
cxgb4: Include TCP as protocol when creating server filters

We were creating LE Workaround Server Filters without specifying
IPPROTO_TCP (6) in the filters (when F_PROTOCOL is set in TP_VLAN_PRI_MAP).
This meant that UDP packets with matching IP Addresses/Ports would get
caught up in the filter and be delivered to ULDs like iw_cxgb4.
So, include the protocol information in the server filter properly.

Based on original work by Casey Leedom <leedom@chelsio.com>

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_regs.h