aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r--drivers/net/ethernet/sfc/efx.c4
-rw-r--r--drivers/net/ethernet/sfc/efx.h4
-rw-r--r--drivers/net/ethernet/sfc/rx.c7
3 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index 44a82c6c60a7..e43702f33b62 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -2236,9 +2236,9 @@ static DEFINE_PCI_DEVICE_TABLE(efx_pci_table) = {
2236 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE, 2236 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE,
2237 PCI_DEVICE_ID_SOLARFLARE_SFC4000B), 2237 PCI_DEVICE_ID_SOLARFLARE_SFC4000B),
2238 .driver_data = (unsigned long) &falcon_b0_nic_type}, 2238 .driver_data = (unsigned long) &falcon_b0_nic_type},
2239 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE, BETHPAGE_A_P_DEVID), 2239 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE, 0x0803), /* SFC9020 */
2240 .driver_data = (unsigned long) &siena_a0_nic_type}, 2240 .driver_data = (unsigned long) &siena_a0_nic_type},
2241 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE, SIENA_A_P_DEVID), 2241 {PCI_DEVICE(PCI_VENDOR_ID_SOLARFLARE, 0x0813), /* SFL9021 */
2242 .driver_data = (unsigned long) &siena_a0_nic_type}, 2242 .driver_data = (unsigned long) &siena_a0_nic_type},
2243 {0} /* end of list */ 2243 {0} /* end of list */
2244}; 2244};
diff --git a/drivers/net/ethernet/sfc/efx.h b/drivers/net/ethernet/sfc/efx.h
index 4764793ed234..8a5336d86a12 100644
--- a/drivers/net/ethernet/sfc/efx.h
+++ b/drivers/net/ethernet/sfc/efx.h
@@ -14,10 +14,6 @@
14#include "net_driver.h" 14#include "net_driver.h"
15#include "filter.h" 15#include "filter.h"
16 16
17/* PCI IDs */
18#define BETHPAGE_A_P_DEVID 0x0803
19#define SIENA_A_P_DEVID 0x0813
20
21/* Solarstorm controllers use BAR 0 for I/O space and BAR 2(&3) for memory */ 17/* Solarstorm controllers use BAR 0 for I/O space and BAR 2(&3) for memory */
22#define EFX_MEM_BAR 2 18#define EFX_MEM_BAR 2
23 19
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c
index 955b14956deb..aca349861767 100644
--- a/drivers/net/ethernet/sfc/rx.c
+++ b/drivers/net/ethernet/sfc/rx.c
@@ -479,11 +479,8 @@ static void efx_rx_packet_gro(struct efx_channel *channel,
479 if (efx->net_dev->features & NETIF_F_RXHASH) 479 if (efx->net_dev->features & NETIF_F_RXHASH)
480 skb->rxhash = efx_rx_buf_hash(eh); 480 skb->rxhash = efx_rx_buf_hash(eh);
481 481
482 skb_frag_set_page(skb, 0, page); 482 skb_fill_page_desc(skb, 0, page,
483 skb_shinfo(skb)->frags[0].page_offset = 483 efx_rx_buf_offset(efx, rx_buf), rx_buf->len);
484 efx_rx_buf_offset(efx, rx_buf);
485 skb_frag_size_set(&skb_shinfo(skb)->frags[0], rx_buf->len);
486 skb_shinfo(skb)->nr_frags = 1;
487 484
488 skb->len = rx_buf->len; 485 skb->len = rx_buf->len;
489 skb->data_len = rx_buf->len; 486 skb->data_len = rx_buf->len;