aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-09-23 12:09:27 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-23 12:09:27 -0400
commit1f6d80358dc9bbbeb56cb43384fa11fd645d9289 (patch)
tree152bfa5165292a8e4f06d536b6d222a68480e573 /drivers/net/ethernet/sun
parenta2aeb02a8e6a9fef397c344245a54eeae67341f6 (diff)
parent98f75b8291a89ba6bf73e322ee467ce0bfeb91c1 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: arch/mips/net/bpf_jit.c drivers/net/can/flexcan.c Both the flexcan and MIPS bpf_jit conflicts were cases of simple overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun')
-rw-r--r--drivers/net/ethernet/sun/sunvnet.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c
index 763cdfc228be..edb860947da4 100644
--- a/drivers/net/ethernet/sun/sunvnet.c
+++ b/drivers/net/ethernet/sun/sunvnet.c
@@ -360,14 +360,17 @@ static int vnet_walk_rx_one(struct vnet_port *port,
360 if (IS_ERR(desc)) 360 if (IS_ERR(desc))
361 return PTR_ERR(desc); 361 return PTR_ERR(desc);
362 362
363 if (desc->hdr.state != VIO_DESC_READY)
364 return 1;
365
366 rmb();
367
363 viodbg(DATA, "vio_walk_rx_one desc[%02x:%02x:%08x:%08x:%llx:%llx]\n", 368 viodbg(DATA, "vio_walk_rx_one desc[%02x:%02x:%08x:%08x:%llx:%llx]\n",
364 desc->hdr.state, desc->hdr.ack, 369 desc->hdr.state, desc->hdr.ack,
365 desc->size, desc->ncookies, 370 desc->size, desc->ncookies,
366 desc->cookies[0].cookie_addr, 371 desc->cookies[0].cookie_addr,
367 desc->cookies[0].cookie_size); 372 desc->cookies[0].cookie_size);
368 373
369 if (desc->hdr.state != VIO_DESC_READY)
370 return 1;
371 err = vnet_rx_one(port, desc->size, desc->cookies, desc->ncookies); 374 err = vnet_rx_one(port, desc->size, desc->cookies, desc->ncookies);
372 if (err == -ECONNRESET) 375 if (err == -ECONNRESET)
373 return err; 376 return err;