Skip to content

Commit

Permalink
Fix: HW offload BUG_ON
Browse files Browse the repository at this point in the history
Signed-off-by: Parth Pratim Chatterjee <parth27official@gmail.com>
  • Loading branch information
ParthPratim committed Jul 8, 2021
1 parent ad3ffbb commit f528d9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/lib/lib-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ kernel_dev_xmit(struct sk_buff *skb,
int err;

netif_stop_queue(dev);
if (skb->ip_summed == CHECKSUM_PARTIAL) {
/*if (skb->ip_summed == CHECKSUM_PARTIAL) {
err = skb_checksum_help(skb);
if (unlikely(err)) {
pr_err("checksum error (%d)\n", err);
return 0;
}
}
}*/

lib_dev_xmit((struct SimDevice *)dev, skb->data, skb->len);
dev_kfree_skb(skb);
Expand Down Expand Up @@ -67,6 +67,7 @@ static void lib_dev_setup(struct net_device *dev)
dev->flags = 0;
/* dev->priv_flags &= ~IFF_XMIT_DST_RELEASE; */
dev->features = 0
| NETIF_F_CSUM_MASK
| NETIF_F_HIGHDMA
| NETIF_F_NETNS_LOCAL;
/* disabled NETIF_F_TSO NETIF_F_SG NETIF_F_FRAGLIST NETIF_F_LLTX */
Expand Down

0 comments on commit f528d9c

Please sign in to comment.