net/bnxt: fix RSS action
[dpdk.git] / drivers / net / nfb / nfb_rx.c
index d97179f..8a9b232 100644 (file)
@@ -9,45 +9,8 @@
 #include "nfb_rx.h"
 #include "nfb.h"
 
-static int
-timestamp_check_handler(__rte_unused const char *key,
-       const char *value, __rte_unused void *opaque)
-{
-       if (strcmp(value, "1"))
-               return -1;
-
-       return 0;
-}
-
-
-static int
-nfb_check_timestamp(struct rte_devargs *devargs)
-{
-       struct rte_kvargs *kvlist;
-
-       if (devargs == NULL)
-               return 0;
-
-       kvlist = rte_kvargs_parse(devargs->args, NULL);
-       if (kvlist == NULL)
-               return 0;
-
-       if (!rte_kvargs_count(kvlist, TIMESTAMP_ARG)) {
-               rte_kvargs_free(kvlist);
-               return 0;
-       }
-       /* Timestamps are enabled when there is
-        * key-value pair: enable_timestamp=1
-        */
-       if (rte_kvargs_process(kvlist, TIMESTAMP_ARG,
-               timestamp_check_handler, NULL) < 0) {
-               rte_kvargs_free(kvlist);
-               return 0;
-       }
-       rte_kvargs_free(kvlist);
-
-       return 1;
-}
+uint64_t nfb_timestamp_rx_dynflag;
+int nfb_timestamp_dynfield_offset = -1;
 
 int
 nfb_eth_rx_queue_start(struct rte_eth_dev *dev, uint16_t rxq_id)
@@ -125,9 +88,6 @@ nfb_eth_rx_queue_setup(struct rte_eth_dev *dev,
        else
                rte_free(rxq);
 
-       if (nfb_check_timestamp(dev->device->devargs))
-               rxq->flags |= NFB_TIMESTAMP_FLAG;
-
        return ret;
 }
 
@@ -163,9 +123,10 @@ nfb_eth_rx_queue_init(struct nfb_device *nfb,
 }
 
 void
-nfb_eth_rx_queue_release(void *q)
+nfb_eth_rx_queue_release(struct rte_eth_dev *dev, uint16_t qid)
 {
-       struct ndp_rx_queue *rxq = (struct ndp_rx_queue *)q;
+       struct ndp_rx_queue *rxq = dev->data->rx_queues[qid];
+
        if (rxq->queue != NULL) {
                ndp_close_rx_queue(rxq->queue);
                rte_free(rxq);