• Eric Dumazet's avatar
    macvlan: add multiqueue capability · 2c114553
    Eric Dumazet authored
    macvlan devices are currently not multi-queue capable.
    
    We can do that defining rtnl_link_ops method,
    get_tx_queues(), called from rtnl_create_link()
    
    This new method gets num_tx_queues/real_num_tx_queues
    from lower device.
    
    macvlan_get_tx_queues() is a copy of vlan_get_tx_queues().
    
    Because macvlan_start_xmit() has to update netdev_queue
    stats only (and not dev->stats), I chose to change
    tx_errors/tx_aborted_errors accounting to tx_dropped,
    since netdev_queue structure doesnt define tx_errors /
    tx_aborted_errors.
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2c114553
macvlan.c 15.7 KB