Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/if_ixl.c
Show All 32 Lines | |||||
/*$FreeBSD$*/ | /*$FreeBSD$*/ | ||||
#include "opt_inet.h" | #include "opt_inet.h" | ||||
#include "opt_inet6.h" | #include "opt_inet6.h" | ||||
#include "opt_rss.h" | #include "opt_rss.h" | ||||
#include "ixl.h" | #include "ixl.h" | ||||
#include "ixl_pf.h" | #include "ixl_pf.h" | ||||
#ifdef RSS | |||||
#include <net/rss_config.h> | |||||
#endif /* RSS */ | |||||
/********************************************************************* | /********************************************************************* | ||||
* Driver version | * Driver version | ||||
*********************************************************************/ | *********************************************************************/ | ||||
char ixl_driver_version[] = "1.3.1"; | char ixl_driver_version[] = "1.3.1"; | ||||
/********************************************************************* | /********************************************************************* | ||||
* PCI Device ID Table | * PCI Device ID Table | ||||
* | * | ||||
▲ Show 20 Lines • Show All 3,195 Lines • ▼ Show 20 Lines | if (j == vsi->num_queues) | ||||
j = 0; | j = 0; | ||||
#ifdef RSS | #ifdef RSS | ||||
/* | /* | ||||
* Fetch the RSS bucket id for the given indirection entry. | * Fetch the RSS bucket id for the given indirection entry. | ||||
* Cap it at the number of configured buckets (which is | * Cap it at the number of configured buckets (which is | ||||
* num_queues.) | * num_queues.) | ||||
*/ | */ | ||||
que_id = rss_get_indirection_to_bucket(i); | que_id = rss_get_indirection_to_bucket(i); | ||||
que_id = que_id % adapter->num_queues; | que_id = que_id % vsi->num_queues; | ||||
#else | #else | ||||
que_id = j; | que_id = j; | ||||
#endif | #endif | ||||
/* lut = 4-byte sliding window of 4 lut entries */ | /* lut = 4-byte sliding window of 4 lut entries */ | ||||
lut = (lut << 8) | (que_id & | lut = (lut << 8) | (que_id & | ||||
((0x1 << pf->hw.func_caps.rss_table_entry_width) - 1)); | ((0x1 << pf->hw.func_caps.rss_table_entry_width) - 1)); | ||||
/* On i = 3, we have 4 entries in lut; write to the register */ | /* On i = 3, we have 4 entries in lut; write to the register */ | ||||
if ((i & 3) == 3) | if ((i & 3) == 3) | ||||
▲ Show 20 Lines • Show All 1,702 Lines • Show Last 20 Lines |