summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2013-03-07 20:31:17 +0400
committerBen Hutchings <bhutchings@solarflare.com>2013-03-08 00:22:14 +0400
commit179ea7f039f68ae4247a340bfb59fd861e7def12 (patch)
tree1cbbfe3b56674737df34b26fff87deabe99dd800 /drivers/net/ethernet/sfc/net_driver.h
parent2768935a46603bb9bdd121864b1f2b2e8a71cccc (diff)
downloadlinux-179ea7f039f68ae4247a340bfb59fd861e7def12.tar.xz
sfc: Replace efx_rx_is_last_buffer() with a flag
This condition is brittle and we have lots of flags to spare. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index 370c5bcebad9..e22e75c8f635 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -228,6 +228,7 @@ struct efx_rx_buffer {
u16 len;
u16 flags;
};
+#define EFX_RX_BUF_LAST_IN_PAGE 0x0001
#define EFX_RX_PKT_CSUMMED 0x0002
#define EFX_RX_PKT_DISCARD 0x0004