mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
net: hns3: fix to correctly fetch l4 protocol outer header
This patch fixes the function being used to fetch L4
protocol outer header. Mistakenly skb_inner_transport_header
API was being used earlier.
Fixes: 76ad4f0ee7
("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
206703289a
commit
35f58fd792
@ -502,7 +502,7 @@ static int hns3_get_l4_protocol(struct sk_buff *skb, u8 *ol4_proto,
|
||||
|
||||
/* find outer header point */
|
||||
l3.hdr = skb_network_header(skb);
|
||||
l4_hdr = skb_inner_transport_header(skb);
|
||||
l4_hdr = skb_transport_header(skb);
|
||||
|
||||
if (skb->protocol == htons(ETH_P_IPV6)) {
|
||||
exthdr = l3.hdr + sizeof(*l3.v6);
|
||||
|
Loading…
Reference in New Issue
Block a user