aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amazon/ena/ena_netdev.h
diff options
context:
space:
mode:
authorArthur Kiyanovski <akiyano@amazon.com>2019-06-03 17:43:20 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-03 13:30:38 -0700
commit315c28d2b714f2c52c0b22f38dbf9b44f8f0c9e4 (patch)
tree71fc8dceadab619673c43fe36d2d9cc32194bc83 /drivers/net/ethernet/amazon/ena/ena_netdev.h
parentnet: ena: add handling of llq max tx burst size (diff)
downloadlinux-dev-315c28d2b714f2c52c0b22f38dbf9b44f8f0c9e4.tar.xz
linux-dev-315c28d2b714f2c52c0b22f38dbf9b44f8f0c9e4.zip
net: ena: ethtool: add extra properties retrieval via get_priv_flags
This commit adds a mechanism for exposing different device properties via ethtool's priv_flags. The strings are provided by the device and copied to user space through the driver. In this commit we: Add commands, structs and defines necessary for handling extra properties Add functions for: Allocation/destruction of a buffer for extra properties strings. Retreival of extra properties strings and flags from the network device. Handle the allocation of a buffer for extra properties strings. * Initialize buffer with extra properties strings from the network device at driver startup. Use ethtool's get_priv_flags to expose extra properties of the ENA device Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com> Signed-off-by: Sameeh Jubran <sameehj@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/amazon/ena/ena_netdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.h b/drivers/net/ethernet/amazon/ena/ena_netdev.h
index 63870072cbbd..0681e18b0019 100644
--- a/drivers/net/ethernet/amazon/ena/ena_netdev.h
+++ b/drivers/net/ethernet/amazon/ena/ena_netdev.h
@@ -364,6 +364,8 @@ struct ena_adapter {
u32 last_monitored_tx_qid;
enum ena_regs_reset_reason_types reset_reason;
+
+ u8 ena_extra_properties_count;
};
void ena_set_ethtool_ops(struct net_device *netdev);