aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bgmac.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-23 07:35:36 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-23 16:56:28 -0400
commit45c9b3c09490ef4a4ac19df75b5919849423f3e7 (patch)
tree77418d96c3b36a0ef4a8cfd6b08f5e3e941652bd /drivers/net/ethernet/broadcom/bgmac.h
parent0addb83d4c71a68fa716fbd69a605ac0ba5e2b50 (diff)
bgmac: implement GRO and use build_skb
This improves performance for routing and local rx Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bgmac.h')
-rw-r--r--drivers/net/ethernet/broadcom/bgmac.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.h b/drivers/net/ethernet/broadcom/bgmac.h
index 1f9f36f2b658..3ad965fe7fcc 100644
--- a/drivers/net/ethernet/broadcom/bgmac.h
+++ b/drivers/net/ethernet/broadcom/bgmac.h
@@ -362,6 +362,8 @@
362#define BGMAC_RX_FRAME_OFFSET 30 /* There are 2 unused bytes between header and real data */ 362#define BGMAC_RX_FRAME_OFFSET 30 /* There are 2 unused bytes between header and real data */
363#define BGMAC_RX_MAX_FRAME_SIZE 1536 /* Copied from b44/tg3 */ 363#define BGMAC_RX_MAX_FRAME_SIZE 1536 /* Copied from b44/tg3 */
364#define BGMAC_RX_BUF_SIZE (BGMAC_RX_FRAME_OFFSET + BGMAC_RX_MAX_FRAME_SIZE) 364#define BGMAC_RX_BUF_SIZE (BGMAC_RX_FRAME_OFFSET + BGMAC_RX_MAX_FRAME_SIZE)
365#define BGMAC_RX_ALLOC_SIZE (SKB_DATA_ALIGN(BGMAC_RX_BUF_SIZE) + \
366 SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
365 367
366#define BGMAC_BFL_ENETROBO 0x0010 /* has ephy roboswitch spi */ 368#define BGMAC_BFL_ENETROBO 0x0010 /* has ephy roboswitch spi */
367#define BGMAC_BFL_ENETADM 0x0080 /* has ADMtek switch */ 369#define BGMAC_BFL_ENETADM 0x0080 /* has ADMtek switch */
@@ -383,7 +385,10 @@
383#define ETHER_MAX_LEN 1518 385#define ETHER_MAX_LEN 1518
384 386
385struct bgmac_slot_info { 387struct bgmac_slot_info {
386 struct sk_buff *skb; 388 union {
389 struct sk_buff *skb;
390 void *buf;
391 };
387 dma_addr_t dma_addr; 392 dma_addr_t dma_addr;
388}; 393};
389 394