Projects
home:bitstreamout:Essentials
r8168
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 31
View file
r8168.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed May 10 10:55:42 UTC 2023 - https://www.suse.com/ + +- For Leap 15.5 the kernel 5.14.0 behaves like a 5.17.0 at ethtool.h + +------------------------------------------------------------------- Wed Dec 14 13:42:47 UTC 2022 - Dr. Werner Fink <werner@suse.de> - Update to new version r8168-8.051.02
View file
r8168.spec
Changed
@@ -32,6 +32,7 @@ Patch2: r8168-support-linux-5.19.patch Patch3: r8168-support-linux-6.1.0.patch Patch4: r8168-support-dev0x8136.patch +Patch5: r8168-support-linux-L15.5.patch BuildRequires: kernel-source BuildRequires: kernel-syms BuildRequires: libelf-devel @@ -64,6 +65,14 @@ %patch2 -p1 -b .p2 %patch3 -p1 -b .p3 %patch4 -p1 -b .p4 +if test -e /usr/src/linux/include/linux/ethtool.h +then + argc=$(sed -rn '/\*get_ringparam/,/;$/p' /usr/src/linux/include/linux/ethtool.h | wc -l) + if test -n "$argc" -a "$argc" -eq 4 + then +%patch5 -b .p5 + fi +fi cp %{S:1} . cp %{S:2} .
View file
r8168-support-linux-L15.5.patch
Added
@@ -0,0 +1,56 @@ +--- + src/r8168_n.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +--- src/r8168_n.c ++++ src/r8168_n.c 2023-05-10 10:40:25.454736974 +0000 +@@ -5964,7 +5964,7 @@ rtl8168_wait_for_quiescence(struct net_d + } + + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) + static void rtl8168_get_ringparam(struct net_device *dev, + struct ethtool_ringparam *ring, + struct kernel_ethtool_ringparam *kernel_ring, +@@ -5972,7 +5972,7 @@ static void rtl8168_get_ringparam(struct + #else + static void rtl8168_get_ringparam(struct net_device *dev, + struct ethtool_ringparam *ring) +-#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) ++#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) + { + struct rtl8168_private *tp = netdev_priv(dev); + +@@ -5982,7 +5982,7 @@ static void rtl8168_get_ringparam(struct + ring->tx_pending = tp->num_tx_desc; + } + +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) + static int rtl8168_set_ringparam(struct net_device *dev, + struct ethtool_ringparam *ring, + struct kernel_ethtool_ringparam *kernel_ring, +@@ -5990,7 +5990,7 @@ static int rtl8168_set_ringparam(struct + #else + static int rtl8168_set_ringparam(struct net_device *dev, + struct ethtool_ringparam *ring) +-#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) ++#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) + { + struct rtl8168_private *tp = netdev_priv(dev); + u32 new_rx_count, new_tx_count; +@@ -25420,11 +25420,11 @@ rtl8168_release_board(struct pci_dev *pd + static void + rtl8168_hw_address_set(struct net_device *dev, u8 mac_addrMAC_ADDR_LEN) + { +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) + eth_hw_addr_set(dev, mac_addr); + #else + memcpy(dev->dev_addr, mac_addr, MAC_ADDR_LEN); +-#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) ++#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) + } + + static int
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.