mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 03:50:53 +07:00
sky2: keep track of receive alloc failures
When driver can't allocate receive buffer it drops incoming packet. Keep a counter. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
53419c6851
commit
3225b91903
@ -2141,8 +2141,10 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do)
|
||||
switch (le->opcode & ~HW_OWNER) {
|
||||
case OP_RXSTAT:
|
||||
skb = sky2_receive(dev, length, status);
|
||||
if (!skb)
|
||||
if (unlikely(!skb)) {
|
||||
sky2->net_stats.rx_dropped++;
|
||||
goto force_update;
|
||||
}
|
||||
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
sky2->net_stats.rx_packets++;
|
||||
|
Loading…
Reference in New Issue
Block a user