mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
wifi: iwlwifi: mvm: show skb_mac_gso_segment() failure reason
If this warning triggers we don't really know why, print out the return value so we can see it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240206175739.b1b907741e85.Ib8ee9c90bd8f1af69969981ff0c63e9cc3123e1f@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
87f5b5f2c0
commit
ae6d30a715
|
|
@ -939,9 +939,15 @@ iwl_mvm_tx_tso_segment(struct sk_buff *skb, unsigned int num_subframes,
|
|||
next = skb_gso_segment(skb, netdev_flags);
|
||||
skb_shinfo(skb)->gso_size = mss;
|
||||
skb_shinfo(skb)->gso_type = ipv4 ? SKB_GSO_TCPV4 : SKB_GSO_TCPV6;
|
||||
if (WARN_ON_ONCE(IS_ERR(next)))
|
||||
return -EINVAL;
|
||||
else if (next)
|
||||
|
||||
if (IS_ERR(next) && PTR_ERR(next) == -ENOMEM)
|
||||
return -ENOMEM;
|
||||
|
||||
if (WARN_ONCE(IS_ERR(next),
|
||||
"skb_gso_segment error: %d\n", (int)PTR_ERR(next)))
|
||||
return PTR_ERR(next);
|
||||
|
||||
if (next)
|
||||
consume_skb(skb);
|
||||
|
||||
skb_list_walk_safe(next, tmp, next) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user