Skip to content

Commit daea5b4

Browse files
committed
Merge branch 'sfc-code-refactoring'
Alex Maftei says: ==================== sfc: code refactoring Splitting some of the driver code into different files, which will later be used in another driver for a new product. ==================== Reviewed-by: Edward Cree <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2 parents b9ae512 + 17d3b21 commit daea5b4

25 files changed

+3270
-2856
lines changed

drivers/net/ethernet/sfc/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
sfc-y += efx.o nic.o farch.o siena.o ef10.o tx.o rx.o \
2+
sfc-y += efx.o efx_common.o efx_channels.o nic.o \
3+
farch.o siena.o ef10.o \
4+
tx.o tx_common.o rx.o rx_common.o \
35
selftest.o ethtool.o ptp.o tx_tso.o \
4-
mcdi.o mcdi_port.o mcdi_mon.o
6+
mcdi.o mcdi_port.o \
7+
mcdi_mon.o
58
sfc-$(CONFIG_SFC_MTD) += mtd.o
69
sfc-$(CONFIG_SFC_SRIOV) += sriov.o siena_sriov.o ef10_sriov.o
710

drivers/net/ethernet/sfc/ef10.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
*/
66

77
#include "net_driver.h"
8+
#include "rx_common.h"
89
#include "ef10_regs.h"
910
#include "io.h"
1011
#include "mcdi.h"
1112
#include "mcdi_pcol.h"
13+
#include "mcdi_port_common.h"
1214
#include "nic.h"
1315
#include "workarounds.h"
1416
#include "selftest.h"
1517
#include "ef10_sriov.h"
18+
#include "rx_common.h"
1619
#include <linux/in.h>
1720
#include <linux/jhash.h>
1821
#include <linux/wait.h>

0 commit comments

Comments
 (0)