liquidio: remove support for deprecated f/w cmd OCTNET_CMD_RESET_PF
authorRick Farrington <ricardo.farrington@cavium.com>
Thu, 17 Aug 2017 01:30:13 +0000 (18:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 23:11:58 +0000 (16:11 -0700)
Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/liquidio_common.h

index 268ba5215bdda1bc7db17ebb207237843e2836bd..89d4bbc8170758493de18ed21f59e1f20202d16b 100644 (file)
@@ -1438,15 +1438,6 @@ static void liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx)
        if (atomic_read(&lio->ifstate) & LIO_IFSTATE_RUNNING)
                liquidio_stop(netdev);
 
-       if (fw_type_is_none()) {
-               struct octnic_ctrl_pkt nctrl;
-
-               memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt));
-               nctrl.ncmd.s.cmd = OCTNET_CMD_RESET_PF;
-               nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
-               octnet_send_nic_ctrl_pkt(oct, &nctrl);
-       }
-
        if (oct->props[lio->ifidx].napi_enabled == 1) {
                list_for_each_entry_safe(napi, n, &netdev->napi_list, dev_list)
                        napi_disable(napi);
index 18d29550e2f8f4be954f06a930e3677dc5b3aeec..906e30aadadce342a3d2abe1e787874b85fd5213 100644 (file)
@@ -189,7 +189,6 @@ static inline void add_sg_size(struct octeon_sg_entry *sg_entry,
 #define   OCTNET_CMD_Q                0
 
 /* NIC Command types */
-#define   OCTNET_CMD_RESET_PF         0x0
 #define   OCTNET_CMD_CHANGE_MTU       0x1
 #define   OCTNET_CMD_CHANGE_MACADDR   0x2
 #define   OCTNET_CMD_CHANGE_DEVFLAGS  0x3