net/ionic: remove unused filter delete function
authorAndrew Boyer <aboyer@pensando.io>
Tue, 16 Feb 2021 20:35:27 +0000 (12:35 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 25 Feb 2021 15:58:56 +0000 (16:58 +0100)
This function is unused.

Signed-off-by: Andrew Boyer <aboyer@pensando.io>
drivers/net/ionic/ionic_dev.h
drivers/net/ionic/ionic_rx_filter.c
drivers/net/ionic/ionic_rx_filter.h

index b29bfd1..e1b93b1 100644 (file)
@@ -90,7 +90,6 @@ static inline void ionic_struct_size_checks(void)
        RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_mode_set_cmd) != 64);
        RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_filter_add_cmd) != 64);
        RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_filter_add_comp) != 16);
-       RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_filter_del_cmd) != 64);
 
        /* RDMA commands */
        RTE_BUILD_BUG_ON(sizeof(struct ionic_rdma_reset_cmd) != 64);
index 320b901..4310c91 100644 (file)
@@ -18,20 +18,6 @@ ionic_rx_filter_free(struct ionic_rx_filter *f)
        rte_free(f);
 }
 
-int
-ionic_rx_filter_del(struct ionic_lif *lif, struct ionic_rx_filter *f)
-{
-       struct ionic_admin_ctx ctx = {
-               .pending_work = true,
-               .cmd.rx_filter_del = {
-                       .opcode = IONIC_CMD_RX_FILTER_DEL,
-                       .filter_id = rte_cpu_to_le_32(f->filter_id),
-               },
-       };
-
-       return ionic_adminq_post(lif, &ctx);
-}
-
 int
 ionic_rx_filters_init(struct ionic_lif *lif)
 {
index e1dd5f9..773042f 100644 (file)
@@ -35,7 +35,6 @@ struct ionic_admin_ctx;
 struct ionic_lif;
 
 void ionic_rx_filter_free(struct ionic_rx_filter *f);
-int ionic_rx_filter_del(struct ionic_lif *lif, struct ionic_rx_filter *f);
 int ionic_rx_filters_init(struct ionic_lif *lif);
 void ionic_rx_filters_deinit(struct ionic_lif *lif);
 int ionic_rx_filter_save(struct ionic_lif *lif, uint32_t flow_id,