Skip to content

Commit

Permalink
ixgbe: remove redundant nm_config callback
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaffione committed Mar 18, 2018
1 parent 45667e7 commit c4dd24c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions LINUX/ixgbe_netmap_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,19 +729,6 @@ ixgbe_netmap_krings_create(struct netmap_adapter *na)
return ret;
}

static int
ixgbe_netmap_config(struct netmap_adapter *na, struct nm_config_info *info)
{
struct NM_IXGBE_ADAPTER *adapter = netdev_priv(na->ifp);

info->num_tx_rings = adapter->num_tx_queues;
info->num_rx_rings = adapter->num_rx_queues;
info->num_tx_descs = NM_IXGBE_TX_RING(adapter, 0)->count;
info->num_rx_descs = NM_IXGBE_RX_RING(adapter, 0)->count;

return 0;
}

static void ixgbe_netmap_detach(struct NM_IXGBE_ADAPTER *adapter);
/*
* The attach routine, called near the end of ixgbe_attach(),
Expand Down Expand Up @@ -780,7 +767,6 @@ ixgbe_netmap_attach(struct NM_IXGBE_ADAPTER *adapter)
na.nm_register = ixgbe_netmap_reg;
na.nm_krings_create = ixgbe_netmap_krings_create;
na.nm_krings_delete = ixgbe_netmap_krings_delete;
na.nm_config = ixgbe_netmap_config;
na.num_tx_rings = adapter->num_tx_queues;
na.num_rx_rings = adapter->num_rx_queues;
na.nm_intr = ixgbe_netmap_intr;
Expand Down

0 comments on commit c4dd24c

Please sign in to comment.