Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 354504 Details for
Bug 478650
net-misc/r8168-8.036.00 version bump for kernel 3.10.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
r8168-8.036.00-build-3.10.patch
r8168-8.036.00-build-3.10.patch (text/plain), 2.11 KB, created by
minaco2
on 2013-07-29 12:04:27 UTC
(
hide
)
Description:
r8168-8.036.00-build-3.10.patch
Filename:
MIME Type:
Creator:
minaco2
Created:
2013-07-29 12:04:27 UTC
Size:
2.11 KB
patch
obsolete
>--- a/src/r8168_n.c 2013-06-17 20:42:48.000000000 +0900 >+++ b/src/r8168_n.c 2013-07-21 00:20:02.000000000 +0900 >@@ -52,6 +52,10 @@ > #include <linux/init.h> > #include <linux/rtnetlink.h> > >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) >+#include <uapi/linux/if_ether.h> >+#endif >+ > #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) > #include <linux/pci-aspm.h> > #endif >@@ -2232,6 +2236,9 @@ > swab16(opts2 & 0xffff)); > ret = 0; > } >+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) >+ if (opts2 & RxVlanTag) >+ __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)); > #else > if (opts2 & RxVlanTag) > __vlan_hwaccel_put_tag(skb, swab16(opts2 & 0xffff)); >@@ -2294,8 +2301,11 @@ > tp->cp_cmd |= RxChkSum; > else > tp->cp_cmd &= ~RxChkSum; >- >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) >+ if (dev->features & NETIF_F_HW_VLAN_CTAG_RX) >+#else > if (dev->features & NETIF_F_HW_VLAN_RX) >+#endif > tp->cp_cmd |= RxVlan; > else > tp->cp_cmd &= ~RxVlan; >@@ -16195,7 +16205,11 @@ > > #ifdef CONFIG_R8168_VLAN > if (tp->mcfg != CFG_METHOD_DEFAULT) { >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) >+ dev->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX; >+#else > dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; >+#endif > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) > dev->vlan_rx_kill_vid = rtl8168_vlan_rx_kill_vid; > #endif //LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) >@@ -16209,8 +16223,13 @@ > tp->cp_cmd |= RxChkSum; > #else > dev->features |= NETIF_F_RXCSUM; >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) >+ dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | >+ NETIF_F_RXCSUM | NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX; >+#else > dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | > NETIF_F_RXCSUM | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; >+#endif > dev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | > NETIF_F_HIGHDMA; > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 478650
:
354502
| 354504