• Alexander Duyck's avatar
    net: Add functions netif_reset_xps_queue and netif_set_xps_queue · 537c00de
    Alexander Duyck authored
    This patch adds two functions, netif_reset_xps_queue and
    netif_set_xps_queue.  The main idea behind these two functions is to
    provide a mechanism through which drivers can update their defaults in
    regards to XPS.
    
    Currently no such mechanism exists and as a result we cannot use XPS for
    things such as ATR which would require a basic configuration to start in
    which the Tx queues are mapped to CPUs via a 1:1 mapping.  With this change
    I am making it possible for drivers such as ixgbe to be able to use the XPS
    feature by controlling the default configuration.
    Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    537c00de
net-sysfs.c 31.4 KB