mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
tg3: Break out RSS indir table init and assignment
This patch creates a new device member to hold the RSS indirection table and separates out the code that initializes the table from the code that programs the table into device registers. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f88788f0da
commit
bcebcc468a
2 changed files with 37 additions and 23 deletions
|
@ -31,6 +31,8 @@
|
|||
#define TG3_RX_RET_MAX_SIZE_5705 512
|
||||
#define TG3_RX_RET_MAX_SIZE_5717 4096
|
||||
|
||||
#define TG3_RSS_INDIR_TBL_SIZE 128
|
||||
|
||||
/* First 256 bytes are a mirror of PCI config space. */
|
||||
#define TG3PCI_VENDOR 0x00000000
|
||||
#define TG3PCI_VENDOR_BROADCOM 0x14e4
|
||||
|
@ -3152,6 +3154,7 @@ struct tg3 {
|
|||
u32 led_ctrl;
|
||||
u32 phy_otp;
|
||||
u32 setlpicnt;
|
||||
u8 rss_ind_tbl[TG3_RSS_INDIR_TBL_SIZE];
|
||||
|
||||
#define TG3_BPN_SIZE 24
|
||||
char board_part_number[TG3_BPN_SIZE];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue