Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ASM: https://godbolt.org/z/uVMv1M
- --- drivers/net/ethernet/broadcom/genet/bcmgenet.c
- +++ drivers/net/ethernet/broadcom/genet/bcmgenet.c
- @@ -1483,12 +1507,12 @@
- status = (struct status_64 *)skb->data;
- if (skb->ip_summed == CHECKSUM_PARTIAL) {
- - ip_ver = htons(skb->protocol);
- + ip_ver = skb->protocol;
- switch (ip_ver) {
- - case ETH_P_IP:
- + case htons(ETH_P_IP):
- ip_proto = ip_hdr(skb)->protocol;
- break;
- - case ETH_P_IPV6:
- + case htons(ETH_P_IPV6):
- ip_proto = ipv6_hdr(skb)->nexthdr;
- break;
- default:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement