Skip to content

Commit

Permalink
sfc: Reject packets from the kernel TX queue during a loopback self-test
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Mar 5, 2009
1 parent ca83db3 commit a7ef593
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/sfc/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ int efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev)
struct efx_nic *efx = netdev_priv(net_dev);
struct efx_tx_queue *tx_queue;

if (unlikely(efx->port_inhibited))
return NETDEV_TX_BUSY;

if (likely(skb->ip_summed == CHECKSUM_PARTIAL))
tx_queue = &efx->tx_queue[EFX_TX_QUEUE_OFFLOAD_CSUM];
else
Expand Down

0 comments on commit a7ef593

Please sign in to comment.