sfc: support ndo_get_phys_port_id even when !CONFIG_SFC_SRIOV
There's no good reason why this should be an SRIOV-only thing. Thus, also move it out of SRIOV-specific files. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
79f664edc1
commit
08a7b29be9
@ -1220,6 +1220,7 @@ struct efx_mtd_partition {
|
||||
* @ptp_set_ts_config: Set hardware timestamp configuration. The flags
|
||||
* and tx_type will already have been validated but this operation
|
||||
* must validate and update rx_filter.
|
||||
* @get_phys_port_id: Get the underlying physical port id.
|
||||
* @set_mac_address: Set the MAC address of the device
|
||||
* @tso_versions: Returns mask of firmware-assisted TSO versions supported.
|
||||
* If %NULL, then device does not support any TSO version.
|
||||
@ -1358,6 +1359,8 @@ struct efx_nic_type {
|
||||
int (*sriov_configure)(struct efx_nic *efx, int num_vfs);
|
||||
int (*vlan_rx_add_vid)(struct efx_nic *efx, __be16 proto, u16 vid);
|
||||
int (*vlan_rx_kill_vid)(struct efx_nic *efx, __be16 proto, u16 vid);
|
||||
int (*get_phys_port_id)(struct efx_nic *efx,
|
||||
struct netdev_phys_item_id *ppid);
|
||||
int (*sriov_init)(struct efx_nic *efx);
|
||||
void (*sriov_fini)(struct efx_nic *efx);
|
||||
bool (*sriov_wanted)(struct efx_nic *efx);
|
||||
@ -1372,8 +1375,6 @@ struct efx_nic_type {
|
||||
struct ifla_vf_info *ivi);
|
||||
int (*sriov_set_vf_link_state)(struct efx_nic *efx, int vf_i,
|
||||
int link_state);
|
||||
int (*sriov_get_phys_port_id)(struct efx_nic *efx,
|
||||
struct netdev_phys_item_id *ppid);
|
||||
int (*vswitching_probe)(struct efx_nic *efx);
|
||||
int (*vswitching_restore)(struct efx_nic *efx);
|
||||
void (*vswitching_remove)(struct efx_nic *efx);
|
||||
|
Reference in New Issue
Block a user