FreeBSD Bugzilla – Attachment 240839 Details for
Bug 270195
net/realtek-re-kmod - adding support for killer E3000/E3100
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git formatted patch
0001-Added-support-for-RTL8125-labelled-as-Killer-E3000-E.patch (text/plain), 4.36 KB, created by
Tino Engel
on 2023-03-14 11:05:59 UTC
(
hide
)
Description:
git formatted patch
Filename:
MIME Type:
Creator:
Tino Engel
Created:
2023-03-14 11:05:59 UTC
Size:
4.36 KB
patch
obsolete
>From e4339ab33174bf22de6557915ffd6319e14afcf7 Mon Sep 17 00:00:00 2001 >From: Tino Engel <tino.engel@mail.de> >Date: Tue, 14 Mar 2023 10:41:26 +0100 >Subject: [PATCH] Added support for RTL8125 labelled as Killer E3000/E3100 > >--- > net/realtek-re-kmod/files/patch-if__re.c | 73 +++++++++++++++++++++ > net/realtek-re-kmod/files/patch-if__rereg.h | 10 +++ > 2 files changed, 83 insertions(+) > create mode 100644 net/realtek-re-kmod/files/patch-if__re.c > create mode 100644 net/realtek-re-kmod/files/patch-if__rereg.h > >diff --git a/net/realtek-re-kmod/files/patch-if__re.c b/net/realtek-re-kmod/files/patch-if__re.c >new file mode 100644 >index 000000000000..88305ad5a890 >--- /dev/null >+++ b/net/realtek-re-kmod/files/patch-if__re.c >@@ -0,0 +1,73 @@ >+--- if_re.c.orig 2023-03-12 08:31:28 UTC >++++ if_re.c >+@@ -158,6 +158,10 @@ static struct re_type re_devs[] = { >+ RT_VENDORID, RT_DEVICEID_8125, >+ "Realtek PCIe 2.5GbE Family Controller" >+ }, >++ { >++ RT_VENDORID, RT_DEVICEID_3000, >++ "Killer PCIe 3x00 2.5GbE Family Controller" >++ }, >+ { 0, 0, NULL } >+ }; >+ >+@@ -2907,6 +2911,7 @@ static int re_check_mac_version(struct re_softc *sc) >+ case RT_DEVICEID_8161: >+ case RT_DEVICEID_8162: >+ case RT_DEVICEID_8125: >++ case RT_DEVICEID_3000: >+ //do nothing >+ break; >+ default: >+@@ -2925,6 +2930,7 @@ static void re_init_software_variable(struct re_softc >+ case RT_DEVICEID_8162: >+ case RT_DEVICEID_8136: >+ case RT_DEVICEID_8125: >++ case RT_DEVICEID_3000: >+ sc->re_if_flags |= RL_FLAG_PCIE; >+ break; >+ } >+@@ -3846,6 +3852,7 @@ static int re_attach(device_t dev) >+ >+ switch(sc->re_device_id) { >+ case RT_DEVICEID_8125: >++ case RT_DEVICEID_3000: >+ ifp->if_baudrate = 25000000000; >+ break; >+ case RT_DEVICEID_8169: >+@@ -3932,6 +3939,7 @@ static int re_attach(device_t dev) >+ ifmedia_add(&sc->media, IFM_ETHER | IFM_100_TX | IFM_FDX, 0, NULL); >+ switch(sc->re_device_id) { >+ case RT_DEVICEID_8125: >++ case RT_DEVICEID_3000: >+ case RT_DEVICEID_8169: >+ case RT_DEVICEID_8169SC: >+ case RT_DEVICEID_8168: >+@@ -3945,6 +3953,7 @@ static int re_attach(device_t dev) >+ } >+ switch(sc->re_device_id) { >+ case RT_DEVICEID_8125: >++ case RT_DEVICEID_3000: >+ ifmedia_add(&sc->media, IFM_ETHER | IFM_2500_T | IFM_FDX, 0, NULL); >+ break; >+ default: >+@@ -6362,7 +6371,7 @@ re_set_wol_linkspeed(struct re_softc *sc) >+ >+ if (wol_link_speed == RE_WOL_LINK_SPEED_10M_FIRST) >+ anar &= ~(ANAR_TX_FD | ANAR_TX); >+- if (sc->re_device_id==RT_DEVICEID_8125 || sc->re_device_id==RT_DEVICEID_8162) { >++ if (sc->re_device_id==RT_DEVICEID_8125 || sc->re_device_id==RT_DEVICEID_8162 || sc->re_device_id==RT_DEVICEID_3000) { >+ u_int16_t gbcr; >+ >+ ClearEthPhyOcpBit(sc, 0xA5D4, RTK_ADVERTISE_2500FULL); >+@@ -6607,8 +6616,8 @@ static void re_start(struct ifnet *ifp) /* Transmit >+ break; >+ } >+ >+- if (sc->re_type == MACFG_80 || sc->re_type == MACFG_81 || >+- sc->re_type == MACFG_82 || sc->re_type == MACFG_83) { >++ if (sc->re_device_id != RT_DEVICEID_3000 && (sc->re_type == MACFG_80 || sc->re_type == MACFG_81 || >++ sc->re_type == MACFG_82 || sc->re_type == MACFG_83)) { >+ if (re_8125_pad(sc, m_head) != 0) { >+ IFQ_DRV_PREPEND(&ifp->if_snd, m_head); >+ ifp->if_drv_flags |= IFF_DRV_OACTIVE; >diff --git a/net/realtek-re-kmod/files/patch-if__rereg.h b/net/realtek-re-kmod/files/patch-if__rereg.h >new file mode 100644 >index 000000000000..430f9ed71a12 >--- /dev/null >+++ b/net/realtek-re-kmod/files/patch-if__rereg.h >@@ -0,0 +1,10 @@ >+--- if_rereg.h.orig 2023-03-12 08:31:32 UTC >++++ if_rereg.h >+@@ -1073,6 +1073,7 @@ enum bits { >+ #define RT_DEVICEID_8162 0x8162 /* For RTL8168KB */ >+ #define RT_DEVICEID_8136 0x8136 /* For RTL8101E */ >+ #define RT_DEVICEID_8125 0x8125 /* For RTL8125 */ >++#define RT_DEVICEID_3000 0x3000 /* For Killer E3000/E3100 with RTL8125 */ >+ >+ /* >+ * Accton PCI vendor ID >-- >2.39.2 >
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 270195
: 240839