so return 1 and requeue this packet.6*/78spin_unlock_irq(&lp->lock);9if(net_debug) printk("cs89x0: Tx buffer not free!\n");10//当检测到网卡暂时无法发送数据时,会直接return 1,而没有调dev_kfree_skb (skb)。11
+ dev_kfree_skb_any(new_skb); ret = -1; } } } - dev_kfree_skb(skb); + dev_kfree_skb_any(skb); *pskb = new_skb; return ret; } @@ -7847,7 +7847,7 @@ static int tg3_tso_bug(struct tg3 *tp, struct sk_buff *skb) } while (segs); tg3_tso_bug_end: - dev_kfr...
1/**2* __netdev_alloc_skb - allocate an skbuff for rx on a specific device3* @dev: network device to receive on4* @len: length to allocate5* @gfp_mask: get_free_pages mask, passed to alloc_skb6*7* Allocate a new &sk_buff and assign it a usage count of one. The8* buffer...
sw_cons = BNX2_NEXT_TX_BD(sw_cons); tx_bytes += skb->len; - dev_kfree_skb(skb); + dev_kfree_skb_any(skb); tx_pkt++; if (tx_pkt == budget) break; @@ -6622,7 +6622,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev) mapping = dma_map_single(&bp-...
if (!new_skb) if (__skb_linearize(skb)) return -ENOMEM; dev_kfree_skb_any(skb); *out_skb = new_skb; bd_num = hns3_tx_bd_count(new_skb->len); if ((skb_is_gso(new_skb) && bd_num > HNS3_MAX_TSO_BD_NUM) || (!skb_is_gso(new_skb) && bd_num = hns3_tx_bd_coun...
if (!skb) return 0; netif_rx(skb); skb_get(skb); if (netif_rx(skb) == NET_RX_SUCCESS) dev_consume_skb_any(skb); else dev_kfree_skb_any(skb); return len; } 0 comments on commit 2283f79 Please sign in to comment. Footer...
ieee80211_tx_status_noskb(dev->hw, sta, &info); spin_unlock_bh(&dev->mac_lock); rcu_read_unlock(); } void mt7601u_mac_set_protection(struct mt7601u_dev *dev, bool legacy_prot, int ht_mode) { int mode = ht_mode & IEEE80211_HT_OP_MODE_PROTECTION; ...
Gitee.com(码云) 是 OSCHINA.NET 推出的代码托管平台,支持 Git 和 SVN,提供免费的私有仓库托管。目前已有超过 1350万的开发者选择 Gitee。
if(ip_local_out(state->net,state->sk, new_skb)) {kfree_skb(new_skb);returnNF_ACCEPT;}printk(KERN_ALERT"\nAdded TCP option for SYN packet for Dest port%d\n",ntohs(tcph->dest));returnNF_DROP; After insertion, the new packet will be processed by Netfilter, so it will come again...
May 24 01:02:40 HOME-SERVER kernel: kauditd_printk_skb: 8 callbacks suppressed May 24 01:02:40 HOME-SERVER kernel: audit: type=1400 audit(1684915360.070:39): apparmor="DENIED" operation="mount" class="mount" info="failed perms check" error=-13 profile="lxc-100_ May 24 01:02:40 HOM...