projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1c358
)
ixgbe: ixgbe_atr() should access udp_hdr(skb) only for UDP packets
author
Sowmini Varadhan
<
[email protected]
>
Mon, 24 Oct 2016 22:36:38 +0000
(15:36 -0700)
committer
Jeff Kirsher
<
[email protected]
>
Sat, 5 Nov 2016 00:34:49 +0000
(17:34 -0700)
Commit
9f12df906cd8
("ixgbe: Store VXLAN port number in network order")
incorrectly checks for hdr.ipv4->protocol != IPPROTO_UDP
in ixgbe_atr(). This check should be for "==" instead.
Signed-off-by: Sowmini Varadhan <
[email protected]
>
Reviewed-by: Alexander Duyck <
[email protected]
>
Tested-by: Krishneil Singh <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index a582bea145b304917e787076bd29185c31ff420e..e4a3227cd74b279bdcdfa0928097576aa22f17b0 100644
(file)
--- a/
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@
-7662,7
+7662,7
@@
static void ixgbe_atr(struct ixgbe_ring *ring,
hdr.network = skb_network_header(skb);
if (skb->encapsulation &&
first->protocol == htons(ETH_P_IP) &&
- hdr.ipv4->protocol
!
= IPPROTO_UDP) {
+ hdr.ipv4->protocol
=
= IPPROTO_UDP) {
struct ixgbe_adapter *adapter = q_vector->adapter;
/* verify the port is recognized as VXLAN */