mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-31 09:11:24 +08:00
Revert "Return the default TX and RX hardware checksum for the Cadence driver to off."
This reverts commit 54fb9f01f86286ecea3093f6f524afec86d6313f. This change adds white space changes. A better solution is to revert the original change.
This commit is contained in:
parent
54fb9f01f8
commit
82830ce063
@ -1778,10 +1778,15 @@ cgem_attach(device_t dev)
|
|||||||
ifp->if_init = cgem_init;
|
ifp->if_init = cgem_init;
|
||||||
ifp->if_capabilities |= IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 |
|
ifp->if_capabilities |= IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 |
|
||||||
IFCAP_VLAN_MTU | IFCAP_VLAN_HWCSUM;
|
IFCAP_VLAN_MTU | IFCAP_VLAN_HWCSUM;
|
||||||
|
#ifndef __rtems__
|
||||||
/* Disable hardware checksumming by default. */
|
/* Disable hardware checksumming by default. */
|
||||||
ifp->if_hwassist = 0;
|
ifp->if_hwassist = 0;
|
||||||
ifp->if_capenable = ifp->if_capabilities &
|
ifp->if_capenable = ifp->if_capabilities &
|
||||||
~(IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 | IFCAP_VLAN_HWCSUM);
|
~(IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 | IFCAP_VLAN_HWCSUM);
|
||||||
|
#else /* __rtems__ */
|
||||||
|
ifp->if_hwassist = CGEM_CKSUM_ASSIST;
|
||||||
|
ifp->if_capenable = ifp->if_capabilities;
|
||||||
|
#endif /* __rtems__ */
|
||||||
ifp->if_snd.ifq_drv_maxlen = CGEM_NUM_TX_DESCS;
|
ifp->if_snd.ifq_drv_maxlen = CGEM_NUM_TX_DESCS;
|
||||||
IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
|
IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
|
||||||
IFQ_SET_READY(&ifp->if_snd);
|
IFQ_SET_READY(&ifp->if_snd);
|
||||||
|
14
libbsd.txt
14
libbsd.txt
@ -1075,24 +1075,12 @@ Broadcom BCM4401 _bsd_bfe_pcimodule_sys_init Links
|
|||||||
Broadcom BCM570x _bsd_bge_pcimodule_sys_init Needs Symbols (A)
|
Broadcom BCM570x _bsd_bge_pcimodule_sys_init Needs Symbols (A)
|
||||||
E1000 IGB _bsd_igb_pcimodule_sys_init Links
|
E1000 IGB _bsd_igb_pcimodule_sys_init Links
|
||||||
E1000 EM _bsd_em_pcimodule_sys_init Links
|
E1000 EM _bsd_em_pcimodule_sys_init Links
|
||||||
Cadence ? Links, works.
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
||||||
Symbols (A)
|
Symbols (A)
|
||||||
pci_get_vpd_ident
|
pci_get_vpd_ident
|
||||||
|
|
||||||
=== Cadence ===
|
|
||||||
|
|
||||||
The cadence driver works on the Xilinx Zynq platform. The hardware checksum
|
|
||||||
support works on real hardware but does not seem to be supported on qemu
|
|
||||||
therefore the default state is disabled and it can be enabled from the shell
|
|
||||||
with:
|
|
||||||
|
|
||||||
# ifconfig cgem0 rxcsum txcsum
|
|
||||||
|
|
||||||
or with an ioctl call to the network interface driver with SIOCSIFCAP and the
|
|
||||||
mask IFCAP_TXCSUM and IFCAP_RXCSUM set.
|
|
||||||
|
|
||||||
== Problems to report to FreeBSD ==
|
== Problems to report to FreeBSD ==
|
||||||
|
|
||||||
The MMAP_NOT_AVAILABLE define is inverted on its usage. When it is
|
The MMAP_NOT_AVAILABLE define is inverted on its usage. When it is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user