Lines 116-121
Link Here
|
116 |
#define FIRMWARE_8168FP_3 "rtl_nic/rtl8168fp-3.fw" |
116 |
#define FIRMWARE_8168FP_3 "rtl_nic/rtl8168fp-3.fw" |
117 |
#define FIRMWARE_8168FP_4 "rtl_nic/rtl8168fp-4.fw" |
117 |
#define FIRMWARE_8168FP_4 "rtl_nic/rtl8168fp-4.fw" |
118 |
|
118 |
|
|
|
119 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) |
120 |
static inline void netif_set_gso_max_size(struct net_device *dev, |
121 |
unsigned int size) |
122 |
{ |
123 |
/* dev->gso_max_size is read locklessly from sk_setup_caps() */ |
124 |
WRITE_ONCE(dev->gso_max_size, size); |
125 |
} |
126 |
#endif |
127 |
|
119 |
/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). |
128 |
/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). |
120 |
The RTL chips use a 64 element hash table based on the Ethernet CRC. */ |
129 |
The RTL chips use a 64 element hash table based on the Ethernet CRC. */ |
121 |
static const int multicast_filter_limit = 32; |
130 |
static const int multicast_filter_limit = 32; |