You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
be2net: add code to display temperature of ASIC
Add support to display temperature of ASIC via ethtool -S From: Somnath K <somnath.kotur@emulex.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3968fa1e58
commit
609ff3bb8f
@@ -225,6 +225,10 @@ struct be_rx_obj {
|
||||
u32 cache_line_barrier[15];
|
||||
};
|
||||
|
||||
struct be_drv_stats {
|
||||
u8 be_on_die_temperature;
|
||||
};
|
||||
|
||||
struct be_vf_cfg {
|
||||
unsigned char vf_mac_addr[ETH_ALEN];
|
||||
u32 vf_if_handle;
|
||||
@@ -234,6 +238,7 @@ struct be_vf_cfg {
|
||||
};
|
||||
|
||||
#define BE_INVALID_PMAC_ID 0xffffffff
|
||||
|
||||
struct be_adapter {
|
||||
struct pci_dev *pdev;
|
||||
struct net_device *netdev;
|
||||
@@ -269,6 +274,7 @@ struct be_adapter {
|
||||
u32 big_page_size; /* Compounded page size shared by rx wrbs */
|
||||
|
||||
u8 msix_vec_next_idx;
|
||||
struct be_drv_stats drv_stats;
|
||||
|
||||
struct vlan_group *vlan_grp;
|
||||
u16 vlans_added;
|
||||
@@ -281,6 +287,7 @@ struct be_adapter {
|
||||
struct be_dma_mem stats_cmd;
|
||||
/* Work queue used to perform periodic tasks like getting statistics */
|
||||
struct delayed_work work;
|
||||
u16 work_counter;
|
||||
|
||||
/* Ethtool knobs and info */
|
||||
bool rx_csum; /* BE card must perform rx-checksumming */
|
||||
|
||||
Reference in New Issue
Block a user