static struct netdev_rxq_bsd * netdev_rxq_bsd_cast(const struct netdev_rxq *rxq) { ovs_assert(is_netdev_bsd_class(netdev_get_class(rxq->netdev))); return CONTAINER_OF(rxq, struct netdev_rxq_bsd, up); }
static struct netdev_windows * netdev_windows_cast(const struct netdev *netdev_) { ovs_assert(is_netdev_windows_class(netdev_get_class(netdev_))); return CONTAINER_OF(netdev_, struct netdev_windows, up); }
static struct netdev_bsd * netdev_bsd_cast(const struct netdev *netdev) { ovs_assert(is_netdev_bsd_class(netdev_get_class(netdev))); return CONTAINER_OF(netdev, struct netdev_bsd, up); }