Skip to content

Commit 4d03e00

Browse files
emuslndavem330
authored andcommitted
ionic: Add initial ethtool support
Add in the basic ethtool callbacks for device information and control. Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8d61aad commit 4d03e00

File tree

6 files changed

+519
-1
lines changed

6 files changed

+519
-1
lines changed

drivers/net/ethernet/pensando/ionic/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
obj-$(CONFIG_IONIC) := ionic.o
55

66
ionic-y := ionic_main.o ionic_bus_pci.o ionic_devlink.o ionic_dev.o \
7-
ionic_debugfs.o ionic_lif.o ionic_rx_filter.o
7+
ionic_debugfs.o ionic_lif.o ionic_rx_filter.o ionic_ethtool.o

drivers/net/ethernet/pensando/ionic/ionic_dev.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,15 @@
1212

1313
#define IONIC_MIN_MTU ETH_MIN_MTU
1414
#define IONIC_MAX_MTU 9194
15+
#define IONIC_MAX_TXRX_DESC 16384
16+
#define IONIC_MIN_TXRX_DESC 16
17+
#define IONIC_DEF_TXRX_DESC 4096
1518
#define IONIC_LIFS_MAX 1024
1619

20+
#define IONIC_DEV_CMD_REG_VERSION 1
21+
#define IONIC_DEV_INFO_REG_COUNT 32
22+
#define IONIC_DEV_CMD_REG_COUNT 32
23+
1724
struct ionic_dev_bar {
1825
void __iomem *vaddr;
1926
phys_addr_t bus_addr;

0 commit comments

Comments
 (0)