4 * Copyright 2017 6WIND S.A.
5 * Copyright 2017 Mellanox.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
17 * * Neither the name of 6WIND S.A. nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 #include <rte_debug.h>
37 #include <rte_ethdev.h>
38 #include <rte_malloc.h>
41 #include "failsafe_private.h"
43 static struct rte_eth_dev_info default_infos = {
44 /* Max possible number of elements */
45 .max_rx_pktlen = UINT32_MAX,
46 .max_rx_queues = RTE_MAX_QUEUES_PER_PORT,
47 .max_tx_queues = RTE_MAX_QUEUES_PER_PORT,
48 .max_mac_addrs = FAILSAFE_MAX_ETHADDR,
49 .max_hash_mac_addrs = UINT32_MAX,
50 .max_vfs = UINT16_MAX,
51 .max_vmdq_pools = UINT16_MAX,
56 .nb_seg_max = UINT16_MAX,
57 .nb_mtu_seg_max = UINT16_MAX,
63 .nb_seg_max = UINT16_MAX,
64 .nb_mtu_seg_max = UINT16_MAX,
67 * Set of capabilities that can be verified upon
68 * configuring a sub-device.
71 DEV_RX_OFFLOAD_VLAN_STRIP |
72 DEV_RX_OFFLOAD_QINQ_STRIP |
73 DEV_RX_OFFLOAD_IPV4_CKSUM |
74 DEV_RX_OFFLOAD_UDP_CKSUM |
75 DEV_RX_OFFLOAD_TCP_CKSUM |
76 DEV_RX_OFFLOAD_TCP_LRO,
77 .tx_offload_capa = 0x0,
78 .flow_type_rss_offloads = 0x0,
82 * Check whether a specific offloading capability
83 * is supported by a sub_device.
86 * 0: all requested capabilities are supported by the sub_device
87 * positive value: This flag at least is not supported by the sub_device
90 fs_port_offload_validate(struct rte_eth_dev *dev,
91 struct sub_device *sdev)
93 struct rte_eth_dev_info infos = {0};
94 struct rte_eth_conf *cf;
97 cf = &dev->data->dev_conf;
98 SUBOPS(sdev, dev_infos_get)(ETH(sdev), &infos);
100 cap = infos.rx_offload_capa;
101 if (cf->rxmode.hw_vlan_strip &&
102 ((cap & DEV_RX_OFFLOAD_VLAN_STRIP) == 0)) {
103 WARN("VLAN stripping offload requested but not supported by sub_device %d",
105 return DEV_RX_OFFLOAD_VLAN_STRIP;
107 if (cf->rxmode.hw_ip_checksum &&
108 ((cap & (DEV_RX_OFFLOAD_IPV4_CKSUM |
109 DEV_RX_OFFLOAD_UDP_CKSUM |
110 DEV_RX_OFFLOAD_TCP_CKSUM)) !=
111 (DEV_RX_OFFLOAD_IPV4_CKSUM |
112 DEV_RX_OFFLOAD_UDP_CKSUM |
113 DEV_RX_OFFLOAD_TCP_CKSUM))) {
114 WARN("IP checksum offload requested but not supported by sub_device %d",
116 return DEV_RX_OFFLOAD_IPV4_CKSUM |
117 DEV_RX_OFFLOAD_UDP_CKSUM |
118 DEV_RX_OFFLOAD_TCP_CKSUM;
120 if (cf->rxmode.enable_lro &&
121 ((cap & DEV_RX_OFFLOAD_TCP_LRO) == 0)) {
122 WARN("TCP LRO offload requested but not supported by sub_device %d",
124 return DEV_RX_OFFLOAD_TCP_LRO;
126 if (cf->rxmode.hw_vlan_extend &&
127 ((cap & DEV_RX_OFFLOAD_QINQ_STRIP) == 0)) {
128 WARN("Stacked VLAN stripping offload requested but not supported by sub_device %d",
130 return DEV_RX_OFFLOAD_QINQ_STRIP;
132 /* TX capabilities */
133 /* Nothing to do, no tx capa supported */
138 * Disable the dev_conf flag related to an offload capability flag
139 * within an ethdev configuration.
142 fs_port_disable_offload(struct rte_eth_conf *cf,
146 case DEV_RX_OFFLOAD_VLAN_STRIP:
147 INFO("Disabling VLAN stripping offload");
148 cf->rxmode.hw_vlan_strip = 0;
150 case DEV_RX_OFFLOAD_IPV4_CKSUM:
151 case DEV_RX_OFFLOAD_UDP_CKSUM:
152 case DEV_RX_OFFLOAD_TCP_CKSUM:
153 case (DEV_RX_OFFLOAD_IPV4_CKSUM |
154 DEV_RX_OFFLOAD_UDP_CKSUM |
155 DEV_RX_OFFLOAD_TCP_CKSUM):
156 INFO("Disabling IP checksum offload");
157 cf->rxmode.hw_ip_checksum = 0;
159 case DEV_RX_OFFLOAD_TCP_LRO:
160 INFO("Disabling TCP LRO offload");
161 cf->rxmode.enable_lro = 0;
163 case DEV_RX_OFFLOAD_QINQ_STRIP:
164 INFO("Disabling stacked VLAN stripping offload");
165 cf->rxmode.hw_vlan_extend = 0;
168 DEBUG("Unable to disable offload capability: %" PRIx32,
176 fs_dev_configure(struct rte_eth_dev *dev)
178 struct sub_device *sdev;
183 FOREACH_SUBDEV(sdev, i, dev) {
184 if (sdev->state != DEV_PROBED)
186 DEBUG("Checking capabilities for sub_device %d", i);
187 while ((capa_flag = fs_port_offload_validate(dev, sdev))) {
189 * Refuse to change configuration if multiple devices
190 * are present and we already have configured at least
193 if (PRIV(dev)->state >= DEV_ACTIVE &&
194 PRIV(dev)->subs_tail > 1) {
195 ERROR("device already configured, cannot fix live configuration");
198 ret = fs_port_disable_offload(&dev->data->dev_conf,
201 ERROR("Unable to disable offload capability");
206 FOREACH_SUBDEV(sdev, i, dev) {
207 if (sdev->state != DEV_PROBED)
209 DEBUG("Configuring sub-device %d", i);
210 ret = rte_eth_dev_configure(PORT_ID(sdev),
211 dev->data->nb_rx_queues,
212 dev->data->nb_tx_queues,
213 &dev->data->dev_conf);
215 ERROR("Could not configure sub_device %d", i);
218 sdev->state = DEV_ACTIVE;
220 if (PRIV(dev)->state < DEV_ACTIVE)
221 PRIV(dev)->state = DEV_ACTIVE;
226 fs_dev_start(struct rte_eth_dev *dev)
228 struct sub_device *sdev;
232 FOREACH_SUBDEV(sdev, i, dev) {
233 if (sdev->state != DEV_ACTIVE)
235 DEBUG("Starting sub_device %d", i);
236 ret = rte_eth_dev_start(PORT_ID(sdev));
239 sdev->state = DEV_STARTED;
241 if (PRIV(dev)->state < DEV_STARTED)
242 PRIV(dev)->state = DEV_STARTED;
248 fs_dev_stop(struct rte_eth_dev *dev)
250 struct sub_device *sdev;
253 PRIV(dev)->state = DEV_STARTED - 1;
254 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_STARTED) {
255 rte_eth_dev_stop(PORT_ID(sdev));
256 sdev->state = DEV_STARTED - 1;
261 fs_dev_set_link_up(struct rte_eth_dev *dev)
263 struct sub_device *sdev;
267 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
268 DEBUG("Calling rte_eth_dev_set_link_up on sub_device %d", i);
269 ret = rte_eth_dev_set_link_up(PORT_ID(sdev));
271 ERROR("Operation rte_eth_dev_set_link_up failed for sub_device %d"
272 " with error %d", i, ret);
280 fs_dev_set_link_down(struct rte_eth_dev *dev)
282 struct sub_device *sdev;
286 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
287 DEBUG("Calling rte_eth_dev_set_link_down on sub_device %d", i);
288 ret = rte_eth_dev_set_link_down(PORT_ID(sdev));
290 ERROR("Operation rte_eth_dev_set_link_down failed for sub_device %d"
291 " with error %d", i, ret);
298 static void fs_dev_free_queues(struct rte_eth_dev *dev);
300 fs_dev_close(struct rte_eth_dev *dev)
302 struct sub_device *sdev;
305 failsafe_hotplug_alarm_cancel(dev);
306 if (PRIV(dev)->state == DEV_STARTED)
307 dev->dev_ops->dev_stop(dev);
308 PRIV(dev)->state = DEV_ACTIVE - 1;
309 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
310 DEBUG("Closing sub_device %d", i);
311 rte_eth_dev_close(PORT_ID(sdev));
312 sdev->state = DEV_ACTIVE - 1;
314 fs_dev_free_queues(dev);
318 fs_rx_queue_release(void *queue)
320 struct rte_eth_dev *dev;
321 struct sub_device *sdev;
328 dev = rxq->priv->dev;
329 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
330 SUBOPS(sdev, rx_queue_release)
331 (ETH(sdev)->data->rx_queues[rxq->qid]);
332 dev->data->rx_queues[rxq->qid] = NULL;
337 fs_rx_queue_setup(struct rte_eth_dev *dev,
338 uint16_t rx_queue_id,
340 unsigned int socket_id,
341 const struct rte_eth_rxconf *rx_conf,
342 struct rte_mempool *mb_pool)
344 struct sub_device *sdev;
349 rxq = dev->data->rx_queues[rx_queue_id];
351 fs_rx_queue_release(rxq);
352 dev->data->rx_queues[rx_queue_id] = NULL;
354 rxq = rte_zmalloc(NULL, sizeof(*rxq),
355 RTE_CACHE_LINE_SIZE);
358 rxq->qid = rx_queue_id;
359 rxq->socket_id = socket_id;
360 rxq->info.mp = mb_pool;
361 rxq->info.conf = *rx_conf;
362 rxq->info.nb_desc = nb_rx_desc;
363 rxq->priv = PRIV(dev);
364 dev->data->rx_queues[rx_queue_id] = rxq;
365 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
366 ret = rte_eth_rx_queue_setup(PORT_ID(sdev),
368 nb_rx_desc, socket_id,
371 ERROR("RX queue setup failed for sub_device %d", i);
377 fs_rx_queue_release(rxq);
382 fs_tx_queue_release(void *queue)
384 struct rte_eth_dev *dev;
385 struct sub_device *sdev;
392 dev = txq->priv->dev;
393 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
394 SUBOPS(sdev, tx_queue_release)
395 (ETH(sdev)->data->tx_queues[txq->qid]);
396 dev->data->tx_queues[txq->qid] = NULL;
401 fs_tx_queue_setup(struct rte_eth_dev *dev,
402 uint16_t tx_queue_id,
404 unsigned int socket_id,
405 const struct rte_eth_txconf *tx_conf)
407 struct sub_device *sdev;
412 txq = dev->data->tx_queues[tx_queue_id];
414 fs_tx_queue_release(txq);
415 dev->data->tx_queues[tx_queue_id] = NULL;
417 txq = rte_zmalloc("ethdev TX queue", sizeof(*txq),
418 RTE_CACHE_LINE_SIZE);
421 txq->qid = tx_queue_id;
422 txq->socket_id = socket_id;
423 txq->info.conf = *tx_conf;
424 txq->info.nb_desc = nb_tx_desc;
425 txq->priv = PRIV(dev);
426 dev->data->tx_queues[tx_queue_id] = txq;
427 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
428 ret = rte_eth_tx_queue_setup(PORT_ID(sdev),
430 nb_tx_desc, socket_id,
433 ERROR("TX queue setup failed for sub_device %d", i);
439 fs_tx_queue_release(txq);
444 fs_dev_free_queues(struct rte_eth_dev *dev)
448 for (i = 0; i < dev->data->nb_rx_queues; i++) {
449 fs_rx_queue_release(dev->data->rx_queues[i]);
450 dev->data->rx_queues[i] = NULL;
452 dev->data->nb_rx_queues = 0;
453 for (i = 0; i < dev->data->nb_tx_queues; i++) {
454 fs_tx_queue_release(dev->data->tx_queues[i]);
455 dev->data->tx_queues[i] = NULL;
457 dev->data->nb_tx_queues = 0;
461 fs_promiscuous_enable(struct rte_eth_dev *dev)
463 struct sub_device *sdev;
466 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
467 rte_eth_promiscuous_enable(PORT_ID(sdev));
471 fs_promiscuous_disable(struct rte_eth_dev *dev)
473 struct sub_device *sdev;
476 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
477 rte_eth_promiscuous_disable(PORT_ID(sdev));
481 fs_allmulticast_enable(struct rte_eth_dev *dev)
483 struct sub_device *sdev;
486 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
487 rte_eth_allmulticast_enable(PORT_ID(sdev));
491 fs_allmulticast_disable(struct rte_eth_dev *dev)
493 struct sub_device *sdev;
496 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
497 rte_eth_allmulticast_disable(PORT_ID(sdev));
501 fs_link_update(struct rte_eth_dev *dev,
502 int wait_to_complete)
504 struct sub_device *sdev;
508 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
509 DEBUG("Calling link_update on sub_device %d", i);
510 ret = (SUBOPS(sdev, link_update))(ETH(sdev), wait_to_complete);
511 if (ret && ret != -1) {
512 ERROR("Link update failed for sub_device %d with error %d",
517 if (TX_SUBDEV(dev)) {
518 struct rte_eth_link *l1;
519 struct rte_eth_link *l2;
521 l1 = &dev->data->dev_link;
522 l2 = Ð(TX_SUBDEV(dev))->data->dev_link;
523 if (memcmp(l1, l2, sizeof(*l1))) {
532 fs_stats_get(struct rte_eth_dev *dev,
533 struct rte_eth_stats *stats)
535 if (TX_SUBDEV(dev) == NULL)
537 rte_eth_stats_get(PORT_ID(TX_SUBDEV(dev)), stats);
541 fs_stats_reset(struct rte_eth_dev *dev)
543 struct sub_device *sdev;
546 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
547 rte_eth_stats_reset(PORT_ID(sdev));
551 * Fail-safe dev_infos_get rules:
555 * Use the maximum possible values for any field, so as not
556 * to impede any further configuration effort.
558 * Limits capabilities to those that are understood by the
559 * fail-safe PMD. This understanding stems from the fail-safe
560 * being capable of verifying that the related capability is
561 * expressed within the device configuration (struct rte_eth_conf).
563 * At least one probed sub_device:
565 * Uses values from the active probed sub_device
566 * The rationale here is that if any sub_device is less capable
567 * (for example concerning the number of queues) than the active
568 * sub_device, then its subsequent configuration will fail.
569 * It is impossible to foresee this failure when the failing sub_device
570 * is supposed to be plugged-in later on, so the configuration process
571 * is the single point of failure and error reporting.
573 * Uses a logical AND of RX capabilities among
574 * all sub_devices and the default capabilities.
575 * Uses a logical AND of TX capabilities among
576 * the active probed sub_device and the default capabilities.
580 fs_dev_infos_get(struct rte_eth_dev *dev,
581 struct rte_eth_dev_info *infos)
583 struct sub_device *sdev;
586 sdev = TX_SUBDEV(dev);
588 DEBUG("No probed device, using default infos");
589 rte_memcpy(&PRIV(dev)->infos, &default_infos,
590 sizeof(default_infos));
592 uint32_t rx_offload_capa;
594 rx_offload_capa = default_infos.rx_offload_capa;
595 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_PROBED) {
596 rte_eth_dev_info_get(PORT_ID(sdev),
598 rx_offload_capa &= PRIV(dev)->infos.rx_offload_capa;
600 sdev = TX_SUBDEV(dev);
601 rte_eth_dev_info_get(PORT_ID(sdev), &PRIV(dev)->infos);
602 PRIV(dev)->infos.rx_offload_capa = rx_offload_capa;
603 PRIV(dev)->infos.tx_offload_capa &=
604 default_infos.tx_offload_capa;
605 PRIV(dev)->infos.flow_type_rss_offloads &=
606 default_infos.flow_type_rss_offloads;
608 rte_memcpy(infos, &PRIV(dev)->infos, sizeof(*infos));
611 static const uint32_t *
612 fs_dev_supported_ptypes_get(struct rte_eth_dev *dev)
614 struct sub_device *sdev;
615 struct rte_eth_dev *edev;
617 sdev = TX_SUBDEV(dev);
621 /* ENOTSUP: counts as no supported ptypes */
622 if (SUBOPS(sdev, dev_supported_ptypes_get) == NULL)
625 * The API does not permit to do a clean AND of all ptypes,
626 * It is also incomplete by design and we do not really care
627 * to have a best possible value in this context.
628 * We just return the ptypes of the device of highest
629 * priority, usually the PREFERRED device.
631 return SUBOPS(sdev, dev_supported_ptypes_get)(edev);
635 fs_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
637 struct sub_device *sdev;
641 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
642 DEBUG("Calling rte_eth_dev_set_mtu on sub_device %d", i);
643 ret = rte_eth_dev_set_mtu(PORT_ID(sdev), mtu);
645 ERROR("Operation rte_eth_dev_set_mtu failed for sub_device %d with error %d",
654 fs_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on)
656 struct sub_device *sdev;
660 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
661 DEBUG("Calling rte_eth_dev_vlan_filter on sub_device %d", i);
662 ret = rte_eth_dev_vlan_filter(PORT_ID(sdev), vlan_id, on);
664 ERROR("Operation rte_eth_dev_vlan_filter failed for sub_device %d"
665 " with error %d", i, ret);
673 fs_flow_ctrl_get(struct rte_eth_dev *dev,
674 struct rte_eth_fc_conf *fc_conf)
676 struct sub_device *sdev;
678 sdev = TX_SUBDEV(dev);
681 if (SUBOPS(sdev, flow_ctrl_get) == NULL)
683 return SUBOPS(sdev, flow_ctrl_get)(ETH(sdev), fc_conf);
687 fs_flow_ctrl_set(struct rte_eth_dev *dev,
688 struct rte_eth_fc_conf *fc_conf)
690 struct sub_device *sdev;
694 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
695 DEBUG("Calling rte_eth_dev_flow_ctrl_set on sub_device %d", i);
696 ret = rte_eth_dev_flow_ctrl_set(PORT_ID(sdev), fc_conf);
698 ERROR("Operation rte_eth_dev_flow_ctrl_set failed for sub_device %d"
699 " with error %d", i, ret);
707 fs_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
709 struct sub_device *sdev;
712 /* No check: already done within the rte_eth_dev_mac_addr_remove
713 * call for the fail-safe device.
715 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
716 rte_eth_dev_mac_addr_remove(PORT_ID(sdev),
717 &dev->data->mac_addrs[index]);
718 PRIV(dev)->mac_addr_pool[index] = 0;
722 fs_mac_addr_add(struct rte_eth_dev *dev,
723 struct ether_addr *mac_addr,
727 struct sub_device *sdev;
731 RTE_ASSERT(index < FAILSAFE_MAX_ETHADDR);
732 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
733 ret = rte_eth_dev_mac_addr_add(PORT_ID(sdev), mac_addr, vmdq);
735 ERROR("Operation rte_eth_dev_mac_addr_add failed for sub_device %"
736 PRIu8 " with error %d", i, ret);
740 if (index >= PRIV(dev)->nb_mac_addr) {
741 DEBUG("Growing mac_addrs array");
742 PRIV(dev)->nb_mac_addr = index;
744 PRIV(dev)->mac_addr_pool[index] = vmdq;
749 fs_mac_addr_set(struct rte_eth_dev *dev, struct ether_addr *mac_addr)
751 struct sub_device *sdev;
754 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE)
755 rte_eth_dev_default_mac_addr_set(PORT_ID(sdev), mac_addr);
759 fs_filter_ctrl(struct rte_eth_dev *dev,
760 enum rte_filter_type type,
761 enum rte_filter_op op,
764 struct sub_device *sdev;
768 if (type == RTE_ETH_FILTER_GENERIC &&
769 op == RTE_ETH_FILTER_GET) {
770 *(const void **)arg = &fs_flow_ops;
773 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
774 DEBUG("Calling rte_eth_dev_filter_ctrl on sub_device %d", i);
775 ret = rte_eth_dev_filter_ctrl(PORT_ID(sdev), type, op, arg);
777 ERROR("Operation rte_eth_dev_filter_ctrl failed for sub_device %d"
778 " with error %d", i, ret);
785 const struct eth_dev_ops failsafe_ops = {
786 .dev_configure = fs_dev_configure,
787 .dev_start = fs_dev_start,
788 .dev_stop = fs_dev_stop,
789 .dev_set_link_down = fs_dev_set_link_down,
790 .dev_set_link_up = fs_dev_set_link_up,
791 .dev_close = fs_dev_close,
792 .promiscuous_enable = fs_promiscuous_enable,
793 .promiscuous_disable = fs_promiscuous_disable,
794 .allmulticast_enable = fs_allmulticast_enable,
795 .allmulticast_disable = fs_allmulticast_disable,
796 .link_update = fs_link_update,
797 .stats_get = fs_stats_get,
798 .stats_reset = fs_stats_reset,
799 .dev_infos_get = fs_dev_infos_get,
800 .dev_supported_ptypes_get = fs_dev_supported_ptypes_get,
801 .mtu_set = fs_mtu_set,
802 .vlan_filter_set = fs_vlan_filter_set,
803 .rx_queue_setup = fs_rx_queue_setup,
804 .tx_queue_setup = fs_tx_queue_setup,
805 .rx_queue_release = fs_rx_queue_release,
806 .tx_queue_release = fs_tx_queue_release,
807 .flow_ctrl_get = fs_flow_ctrl_get,
808 .flow_ctrl_set = fs_flow_ctrl_set,
809 .mac_addr_remove = fs_mac_addr_remove,
810 .mac_addr_add = fs_mac_addr_add,
811 .mac_addr_set = fs_mac_addr_set,
812 .filter_ctrl = fs_filter_ctrl,