Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
RH6: Handle negative returns from dev_queue_xmit
Browse files Browse the repository at this point in the history
This prevents a crash seen during ntttcp udp test.
  • Loading branch information
santoshx authored and johnsongeorge-w committed Mar 26, 2019
1 parent e5ad716 commit 28b2562
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hv-rhel6.x/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ static int netvsc_vf_xmit(struct net_device *net, struct net_device *vf_netdev,
if (rc > 0)
rc = net_xmit_errno(rc);

if (rc < 0)
rc = NETDEV_TX_OK;

return rc;
}

Expand Down

0 comments on commit 28b2562

Please sign in to comment.