projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f75761b
)
xen-netback: use skb_is_gso in xenvif_start_xmit
author
Wei Liu
<
[email protected]
>
Tue, 11 Mar 2014 12:45:32 +0000
(12:45 +0000)
committer
David S. Miller
<
[email protected]
>
Wed, 12 Mar 2014 19:36:32 +0000
(15:36 -0400)
In
5bd076708
("Xen-netback: Fix issue caused by using gso_type wrongly")
we use skb_is_gso to determine if we need an extra slot to accommodate
the SKB. There's similar error in interface.c. Change that to use
skb_is_gso as well.
Signed-off-by: Wei Liu <
[email protected]
>
Cc: Annie Li <
[email protected]
>
Cc: Ian Campbell <
[email protected]
>
Cc: Paul Durrant <
[email protected]
>
Acked-by: Ian Campbell <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/xen-netback/interface.c
patch
|
blob
|
history
diff --git
a/drivers/net/xen-netback/interface.c
b/drivers/net/xen-netback/interface.c
index 7669d49a67e2271bebe14e80aaaa9c59312edea2..301cc037fda886f2bc2de48a347a8693eadee178 100644
(file)
--- a/
drivers/net/xen-netback/interface.c
+++ b/
drivers/net/xen-netback/interface.c
@@
-132,8
+132,7
@@
static int xenvif_start_xmit(struct sk_buff *skb, struct net_device *dev)
/* If the skb is GSO then we'll also need an extra slot for the
* metadata.
*/
- if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4 ||
- skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6)
+ if (skb_is_gso(skb))
min_slots_needed++;
/* If the skb can't possibly fit in the remaining slots