summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/device.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-04-28 17:19:16 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-05-02 15:08:53 +0000
commitc12311b86fb27114cdd3fa4ad9a5897a98448184 (patch)
tree307f8939028428444316ee150d0a9847199aec01 /src/plugins/dpdk/device/device.c
parentc28764fd356632763614ea579f678d8f55eca4c7 (diff)
dpdk: remove unused code
Change-Id: I16dcc0de2553c6c1eb87dd1ec4c8d3c649e6f285 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/device.c')
-rw-r--r--src/plugins/dpdk/device/device.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c
index 48f3237b6a8..465a5874cf2 100644
--- a/src/plugins/dpdk/device/device.c
+++ b/src/plugins/dpdk/device/device.c
@@ -44,7 +44,7 @@ static char *dpdk_tx_func_error_strings[] = {
#undef _
};
-clib_error_t *
+static clib_error_t *
dpdk_set_mac_address (vnet_hw_interface_t * hi, char *address)
{
int error;
@@ -66,26 +66,6 @@ dpdk_set_mac_address (vnet_hw_interface_t * hi, char *address)
}
}
-clib_error_t *
-dpdk_set_mc_filter (vnet_hw_interface_t * hi,
- struct ether_addr mc_addr_vec[], int naddr)
-{
- int error;
- dpdk_main_t *dm = &dpdk_main;
- dpdk_device_t *xd = vec_elt_at_index (dm->devices, hi->dev_instance);
-
- error = rte_eth_dev_set_mc_addr_list (xd->device_index, mc_addr_vec, naddr);
-
- if (error)
- {
- return clib_error_return (0, "mc addr list failed: %d", error);
- }
- else
- {
- return NULL;
- }
-}
-
struct rte_mbuf *
dpdk_replicate_packet_mb (vlib_buffer_t * b)
{