.. | .. |
---|
316 | 316 | * device pointer (used for OS specific calls). |
---|
317 | 317 | */ |
---|
318 | 318 | int rx_on; |
---|
| 319 | + int fec; |
---|
| 320 | + int fec_boot; |
---|
319 | 321 | int napi_enabled; |
---|
320 | 322 | int gmxport; |
---|
321 | 323 | struct net_device *netdev; |
---|
.. | .. |
---|
396 | 398 | u16 vf_vlantci[MAX_POSSIBLE_VFS]; |
---|
397 | 399 | |
---|
398 | 400 | int vf_linkstate[MAX_POSSIBLE_VFS]; |
---|
| 401 | + |
---|
| 402 | + bool vf_spoofchk[MAX_POSSIBLE_VFS]; |
---|
399 | 403 | |
---|
400 | 404 | u64 vf_drv_loaded_mask; |
---|
401 | 405 | }; |
---|
.. | .. |
---|
607 | 611 | u8 speed_boot; |
---|
608 | 612 | u8 speed_setting; |
---|
609 | 613 | u8 no_speed_setting; |
---|
| 614 | + |
---|
| 615 | + u32 vfstats_poll; |
---|
| 616 | +#define LIO_VFSTATS_POLL 10 |
---|
610 | 617 | }; |
---|
611 | 618 | |
---|
612 | 619 | #define OCT_DRV_ONLINE 1 |
---|
.. | .. |
---|
704 | 711 | * @return octeon device id |
---|
705 | 712 | */ |
---|
706 | 713 | int lio_get_device_id(void *dev); |
---|
707 | | - |
---|
708 | | -static inline u16 OCTEON_MAJOR_REV(struct octeon_device *oct) |
---|
709 | | -{ |
---|
710 | | - u16 rev = (oct->rev_id & 0xC) >> 2; |
---|
711 | | - |
---|
712 | | - return (rev == 0) ? 1 : rev; |
---|
713 | | -} |
---|
714 | | - |
---|
715 | | -static inline u16 OCTEON_MINOR_REV(struct octeon_device *oct) |
---|
716 | | -{ |
---|
717 | | - return oct->rev_id & 0x3; |
---|
718 | | -} |
---|
719 | 714 | |
---|
720 | 715 | /** Read windowed register. |
---|
721 | 716 | * @param oct - pointer to the Octeon device. |
---|