[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] drivers/xen/*net*: use skb_is_gso()
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1394544655 -3600 # Node ID 9d5980df7a806e7b3c2c3d864ab24d03c400890c # Parent 56e74559c3746bfde7ff9455d4f8af11ae1c673d drivers/xen/*net*: use skb_is_gso() Suggested-by: Paul Durrant <Paul.Durrant@xxxxxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 56e74559c374 -r 9d5980df7a80 drivers/xen/netback/netback.c --- a/drivers/xen/netback/netback.c Tue Mar 11 14:07:18 2014 +0100 +++ b/drivers/xen/netback/netback.c Tue Mar 11 14:30:55 2014 +0100 @@ -322,7 +322,7 @@ int netif_be_start_xmit(struct sk_buff * } netif->rx_req_cons_peek += skb_shinfo(skb)->nr_frags + 1 + - !!skb_shinfo(skb)->gso_size; + !!skb_is_gso(skb); netif_get(netif); if (netbk_can_queue(dev) && netbk_queue_full(netif)) { diff -r 56e74559c374 -r 9d5980df7a80 drivers/xen/netfront/netfront.c --- a/drivers/xen/netfront/netfront.c Tue Mar 11 14:07:18 2014 +0100 +++ b/drivers/xen/netfront/netfront.c Tue Mar 11 14:30:55 2014 +0100 @@ -1019,7 +1019,7 @@ static int network_start_xmit(struct sk_ #endif #if HAVE_TSO - if (skb_shinfo(skb)->gso_size) { + if (skb_is_gso(skb)) { struct netif_extra_info *gso = (struct netif_extra_info *) RING_GET_REQUEST(&np->tx, ++i); diff -r 56e74559c374 -r 9d5980df7a80 drivers/xen/sfc_netfront/accel_vi.c --- a/drivers/xen/sfc_netfront/accel_vi.c Tue Mar 11 14:07:18 2014 +0100 +++ b/drivers/xen/sfc_netfront/accel_vi.c Tue Mar 11 14:30:55 2014 +0100 @@ -676,13 +676,11 @@ netfront_accel_vi_tx_post(netfront_accel VPRINTK("%s: %d bytes, gso %d\n", __FUNCTION__, skb->len, skb_shinfo(skb)->gso_size); - if (skb_shinfo(skb)->gso_size) { + if (skb_is_gso(skb)) return netfront_accel_enqueue_skb_tso(vnic, skb); - } - if (skb->len <= NETFRONT_ACCEL_TX_BUF_LENGTH) { + if (skb->len <= NETFRONT_ACCEL_TX_BUF_LENGTH) return netfront_accel_enqueue_skb_single(vnic, skb); - } return netfront_accel_enqueue_skb_multi(vnic, skb); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |