]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
igc: Remove IGC_MAC_STATE_QUEUE_STEERING
authorAndre Guedes <andre.guedes@intel.com>
Wed, 1 Apr 2020 21:43:58 +0000 (14:43 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Apr 2020 19:08:07 +0000 (12:08 -0700)
commite9736fa407e53224e9f23a092b17d8f2d1eb705d
tree9757b7634ecf0ec47e7eb21ebf39fe4301117d78
parentc6aae5917b8a244dcb4114be806ba3ac52e3480a
igc: Remove IGC_MAC_STATE_QUEUE_STEERING

The IGC_MAC_STATE_QUEUE_STEERING bit in mac_table[i].state is
utilized to indicate that frames matching the filter are assigned to
mac_table[i].queue. This bit is not strictly necessary since we can
convey the same information as follows: queue == -1 means queue
assignment is disabled, otherwise it is enabled.

In addition to make the code simpler, this change fixes some awkward
situations where we pass a complete misleading 'queue' value such as in
igc_uc_sync().

So this patch removes IGC_MAC_STATE_QUEUE_STEERING and also takes the
opportunity to improve the igc_add_mac_filter documentation.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_main.c