Commit 53b79907 authored by Alice Michael's avatar Alice Michael Committed by Jeff Kirsher

iavf: rename i40e_device to iavf_device

Renaming remaining defines from i40e to iavf
Signed-off-by: default avatarAlice Michael <alice.michael@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent db950599
...@@ -109,7 +109,7 @@ struct iavf_q_vector { ...@@ -109,7 +109,7 @@ struct iavf_q_vector {
/* Helper macros to switch between ints/sec and what the register uses. /* Helper macros to switch between ints/sec and what the register uses.
* And yes, it's the same math going both ways. The lowest value * And yes, it's the same math going both ways. The lowest value
* supported by all of the i40e hardware is 8. * supported by all of the iavf hardware is 8.
*/ */
#define EITR_INTS_PER_SEC_TO_REG(_eitr) \ #define EITR_INTS_PER_SEC_TO_REG(_eitr) \
((_eitr) ? (1000000000 / ((_eitr) * 256)) : 8) ((_eitr) ? (1000000000 / ((_eitr) * 256)) : 8)
...@@ -351,7 +351,7 @@ struct iavf_adapter { ...@@ -351,7 +351,7 @@ struct iavf_adapter {
/* Ethtool Private Flags */ /* Ethtool Private Flags */
/* lan device, used by client interface */ /* lan device, used by client interface */
struct i40e_device { struct iavf_device {
struct list_head list; struct list_head list;
struct iavf_adapter *vf; struct iavf_adapter *vf;
}; };
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
static static
const char iavf_client_interface_version_str[] = IAVF_CLIENT_VERSION_STR; const char iavf_client_interface_version_str[] = IAVF_CLIENT_VERSION_STR;
static struct iavf_client *vf_registered_client; static struct iavf_client *vf_registered_client;
static LIST_HEAD(i40e_devices); static LIST_HEAD(iavf_devices);
static DEFINE_MUTEX(iavf_device_mutex); static DEFINE_MUTEX(iavf_device_mutex);
static u32 iavf_client_virtchnl_send(struct iavf_info *ldev, static u32 iavf_client_virtchnl_send(struct iavf_info *ldev,
...@@ -291,11 +291,11 @@ void iavf_client_subtask(struct iavf_adapter *adapter) ...@@ -291,11 +291,11 @@ void iavf_client_subtask(struct iavf_adapter *adapter)
**/ **/
int iavf_lan_add_device(struct iavf_adapter *adapter) int iavf_lan_add_device(struct iavf_adapter *adapter)
{ {
struct i40e_device *ldev; struct iavf_device *ldev;
int ret = 0; int ret = 0;
mutex_lock(&iavf_device_mutex); mutex_lock(&iavf_device_mutex);
list_for_each_entry(ldev, &i40e_devices, list) { list_for_each_entry(ldev, &iavf_devices, list) {
if (ldev->vf == adapter) { if (ldev->vf == adapter) {
ret = -EEXIST; ret = -EEXIST;
goto out; goto out;
...@@ -308,7 +308,7 @@ int iavf_lan_add_device(struct iavf_adapter *adapter) ...@@ -308,7 +308,7 @@ int iavf_lan_add_device(struct iavf_adapter *adapter)
} }
ldev->vf = adapter; ldev->vf = adapter;
INIT_LIST_HEAD(&ldev->list); INIT_LIST_HEAD(&ldev->list);
list_add(&ldev->list, &i40e_devices); list_add(&ldev->list, &iavf_devices);
dev_info(&adapter->pdev->dev, "Added LAN device bus=0x%02x dev=0x%02x func=0x%02x\n", dev_info(&adapter->pdev->dev, "Added LAN device bus=0x%02x dev=0x%02x func=0x%02x\n",
adapter->hw.bus.bus_id, adapter->hw.bus.device, adapter->hw.bus.bus_id, adapter->hw.bus.device,
adapter->hw.bus.func); adapter->hw.bus.func);
...@@ -331,11 +331,11 @@ int iavf_lan_add_device(struct iavf_adapter *adapter) ...@@ -331,11 +331,11 @@ int iavf_lan_add_device(struct iavf_adapter *adapter)
**/ **/
int iavf_lan_del_device(struct iavf_adapter *adapter) int iavf_lan_del_device(struct iavf_adapter *adapter)
{ {
struct i40e_device *ldev, *tmp; struct iavf_device *ldev, *tmp;
int ret = -ENODEV; int ret = -ENODEV;
mutex_lock(&iavf_device_mutex); mutex_lock(&iavf_device_mutex);
list_for_each_entry_safe(ldev, tmp, &i40e_devices, list) { list_for_each_entry_safe(ldev, tmp, &iavf_devices, list) {
if (ldev->vf == adapter) { if (ldev->vf == adapter) {
dev_info(&adapter->pdev->dev, dev_info(&adapter->pdev->dev,
"Deleted LAN device bus=0x%02x dev=0x%02x func=0x%02x\n", "Deleted LAN device bus=0x%02x dev=0x%02x func=0x%02x\n",
...@@ -360,11 +360,11 @@ int iavf_lan_del_device(struct iavf_adapter *adapter) ...@@ -360,11 +360,11 @@ int iavf_lan_del_device(struct iavf_adapter *adapter)
static void iavf_client_release(struct iavf_client *client) static void iavf_client_release(struct iavf_client *client)
{ {
struct iavf_client_instance *cinst; struct iavf_client_instance *cinst;
struct i40e_device *ldev; struct iavf_device *ldev;
struct iavf_adapter *adapter; struct iavf_adapter *adapter;
mutex_lock(&iavf_device_mutex); mutex_lock(&iavf_device_mutex);
list_for_each_entry(ldev, &i40e_devices, list) { list_for_each_entry(ldev, &iavf_devices, list) {
adapter = ldev->vf; adapter = ldev->vf;
cinst = adapter->cinst; cinst = adapter->cinst;
if (!cinst) if (!cinst)
...@@ -394,11 +394,11 @@ static void iavf_client_release(struct iavf_client *client) ...@@ -394,11 +394,11 @@ static void iavf_client_release(struct iavf_client *client)
**/ **/
static void iavf_client_prepare(struct iavf_client *client) static void iavf_client_prepare(struct iavf_client *client)
{ {
struct i40e_device *ldev; struct iavf_device *ldev;
struct iavf_adapter *adapter; struct iavf_adapter *adapter;
mutex_lock(&iavf_device_mutex); mutex_lock(&iavf_device_mutex);
list_for_each_entry(ldev, &i40e_devices, list) { list_for_each_entry(ldev, &iavf_devices, list) {
adapter = ldev->vf; adapter = ldev->vf;
/* Signal the watchdog to service the client */ /* Signal the watchdog to service the client */
adapter->flags |= IAVF_FLAG_SERVICE_CLIENT_REQUESTED; adapter->flags |= IAVF_FLAG_SERVICE_CLIENT_REQUESTED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment