History log of /openbsd-current/sys/arch/octeon/dev/if_cnmacvar.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 28-Dec-2022 yasuoka

Fix the word in the copyright. IIJ is not a regent. ok from nakayama
at iij

found and ok miod


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.19 04-Sep-2020 visa

Add kstat to cnmac(4)

This makes various receive and transmit event counters readable. This
additionally replaces the old, and somewhat unusual, way of updating
error counters in ifp.

Most of the hardware counters are 32 bits wide. Hence the code polls
them periodically and adds the values to 64-bit software counters.
The hardware counters are cleared when read.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.18 18-Nov-2017 visa

Rename octeon_eth_* to cnmac_* for consistency with the driver's name.
This also makes the code a bit less noisy to read.


# 1.17 02-Nov-2017 visa

Assign each cnmac(4) port its own input work group, and assign
the interrupt processing of each work group to one of the available
CPUs. This enables some parallelism in the early stages of packet Rx.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 06-Aug-2016 visa

Log RX errors only when the interface's debug flag is set.

While here, remove unused PIP error code aliases.


# 1.15 05-Aug-2016 visa

Drop a pointless link carrier check from the RX path.


# 1.14 04-Aug-2016 visa

Add support for jumbo frames.


# 1.13 30-Jul-2016 visa

Remove disabled jumbo frame checks. They will not be needed
for jumbo frame support.


Revision tags: OPENBSD_6_0_BASE
# 1.12 30-May-2016 visa

Fill the packet data pool with standard mbuf clusters instead of
driver-specific memory blocks. This lets the cnmac(4) RX path run
without an mbuf ext_free callback.

ok uebayasi@


# 1.11 29-May-2016 visa

Map ASX registers only if link control needs them.

ok mpi@


# 1.10 21-May-2016 visa

Make the TX path of cnmac(4) MP-safe and add some ifq oactive logic.

Feedback from dlg@, ok mpi@


# 1.9 26-Apr-2016 visa

sc_resume_ch is used nowhere.


# 1.8 26-Apr-2016 visa

Drop an unused workaround which does not even compile.


Revision tags: OPENBSD_5_9_BASE
# 1.7 08-Oct-2015 visa

Remove the sc_soft_req_cnt field because the number of tx requests is
already tracked in sc_sendq. Replace the sc_flush logic with a simple
Fetch-and-Add store that avoids an unnecessary IOBDMA transaction.

ok uebayasi@


Revision tags: OPENBSD_5_8_BASE
# 1.6 11-Jun-2015 jmatthew

convert sc_sendq into an mbuf_list, and use ph_cookie rather than rcvif to
store the sgl address, allowing rcvif to be removed.

ok mpi@ dlg@ uebayasi@


Revision tags: OPENBSD_5_7_BASE
# 1.5 11-Aug-2014 miod

Remove evcnt and %b format strings relying upon SEIL extensions. This gives
OCTEON_ETH_DEBUG kernels a chance to build. No functional change for regular
kernels.


Revision tags: OPENBSD_5_6_BASE
# 1.4 09-Jul-2014 mpi

Kill unused shutdown hook pointers.

ok miod@, deraadt@, tedu@


Revision tags: OPENBSD_5_5_BASE
# 1.3 16-Sep-2013 jmatthew

work out phy addresses before attaching cnmac and pass them to mii_attach
rather than hiding them in the mii read/write functions.

ok dlg@ jasper@ bcallah@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.2 17-Jun-2011 yasuoka

add missing the copyright notice.
delete garbage lines.

ok syuu@


# 1.1 16-Jun-2011 syuu

Ethernet driver merged from IIJ's contribution code.


# 1.19 04-Sep-2020 visa

Add kstat to cnmac(4)

This makes various receive and transmit event counters readable. This
additionally replaces the old, and somewhat unusual, way of updating
error counters in ifp.

Most of the hardware counters are 32 bits wide. Hence the code polls
them periodically and adds the values to 64-bit software counters.
The hardware counters are cleared when read.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.18 18-Nov-2017 visa

Rename octeon_eth_* to cnmac_* for consistency with the driver's name.
This also makes the code a bit less noisy to read.


# 1.17 02-Nov-2017 visa

Assign each cnmac(4) port its own input work group, and assign
the interrupt processing of each work group to one of the available
CPUs. This enables some parallelism in the early stages of packet Rx.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 06-Aug-2016 visa

Log RX errors only when the interface's debug flag is set.

While here, remove unused PIP error code aliases.


# 1.15 05-Aug-2016 visa

Drop a pointless link carrier check from the RX path.


# 1.14 04-Aug-2016 visa

Add support for jumbo frames.


# 1.13 30-Jul-2016 visa

Remove disabled jumbo frame checks. They will not be needed
for jumbo frame support.


Revision tags: OPENBSD_6_0_BASE
# 1.12 30-May-2016 visa

Fill the packet data pool with standard mbuf clusters instead of
driver-specific memory blocks. This lets the cnmac(4) RX path run
without an mbuf ext_free callback.

ok uebayasi@


# 1.11 29-May-2016 visa

Map ASX registers only if link control needs them.

ok mpi@


# 1.10 21-May-2016 visa

Make the TX path of cnmac(4) MP-safe and add some ifq oactive logic.

Feedback from dlg@, ok mpi@


# 1.9 26-Apr-2016 visa

sc_resume_ch is used nowhere.


# 1.8 26-Apr-2016 visa

Drop an unused workaround which does not even compile.


Revision tags: OPENBSD_5_9_BASE
# 1.7 08-Oct-2015 visa

Remove the sc_soft_req_cnt field because the number of tx requests is
already tracked in sc_sendq. Replace the sc_flush logic with a simple
Fetch-and-Add store that avoids an unnecessary IOBDMA transaction.

ok uebayasi@


Revision tags: OPENBSD_5_8_BASE
# 1.6 11-Jun-2015 jmatthew

convert sc_sendq into an mbuf_list, and use ph_cookie rather than rcvif to
store the sgl address, allowing rcvif to be removed.

ok mpi@ dlg@ uebayasi@


Revision tags: OPENBSD_5_7_BASE
# 1.5 11-Aug-2014 miod

Remove evcnt and %b format strings relying upon SEIL extensions. This gives
OCTEON_ETH_DEBUG kernels a chance to build. No functional change for regular
kernels.


Revision tags: OPENBSD_5_6_BASE
# 1.4 09-Jul-2014 mpi

Kill unused shutdown hook pointers.

ok miod@, deraadt@, tedu@


Revision tags: OPENBSD_5_5_BASE
# 1.3 16-Sep-2013 jmatthew

work out phy addresses before attaching cnmac and pass them to mii_attach
rather than hiding them in the mii read/write functions.

ok dlg@ jasper@ bcallah@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.2 17-Jun-2011 yasuoka

add missing the copyright notice.
delete garbage lines.

ok syuu@


# 1.1 16-Jun-2011 syuu

Ethernet driver merged from IIJ's contribution code.


# 1.18 18-Nov-2017 visa

Rename octeon_eth_* to cnmac_* for consistency with the driver's name.
This also makes the code a bit less noisy to read.


# 1.17 02-Nov-2017 visa

Assign each cnmac(4) port its own input work group, and assign
the interrupt processing of each work group to one of the available
CPUs. This enables some parallelism in the early stages of packet Rx.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 06-Aug-2016 visa

Log RX errors only when the interface's debug flag is set.

While here, remove unused PIP error code aliases.


# 1.15 05-Aug-2016 visa

Drop a pointless link carrier check from the RX path.


# 1.14 04-Aug-2016 visa

Add support for jumbo frames.


# 1.13 30-Jul-2016 visa

Remove disabled jumbo frame checks. They will not be needed
for jumbo frame support.


Revision tags: OPENBSD_6_0_BASE
# 1.12 30-May-2016 visa

Fill the packet data pool with standard mbuf clusters instead of
driver-specific memory blocks. This lets the cnmac(4) RX path run
without an mbuf ext_free callback.

ok uebayasi@


# 1.11 29-May-2016 visa

Map ASX registers only if link control needs them.

ok mpi@


# 1.10 21-May-2016 visa

Make the TX path of cnmac(4) MP-safe and add some ifq oactive logic.

Feedback from dlg@, ok mpi@


# 1.9 26-Apr-2016 visa

sc_resume_ch is used nowhere.


# 1.8 26-Apr-2016 visa

Drop an unused workaround which does not even compile.


Revision tags: OPENBSD_5_9_BASE
# 1.7 08-Oct-2015 visa

Remove the sc_soft_req_cnt field because the number of tx requests is
already tracked in sc_sendq. Replace the sc_flush logic with a simple
Fetch-and-Add store that avoids an unnecessary IOBDMA transaction.

ok uebayasi@


Revision tags: OPENBSD_5_8_BASE
# 1.6 11-Jun-2015 jmatthew

convert sc_sendq into an mbuf_list, and use ph_cookie rather than rcvif to
store the sgl address, allowing rcvif to be removed.

ok mpi@ dlg@ uebayasi@


Revision tags: OPENBSD_5_7_BASE
# 1.5 11-Aug-2014 miod

Remove evcnt and %b format strings relying upon SEIL extensions. This gives
OCTEON_ETH_DEBUG kernels a chance to build. No functional change for regular
kernels.


Revision tags: OPENBSD_5_6_BASE
# 1.4 09-Jul-2014 mpi

Kill unused shutdown hook pointers.

ok miod@, deraadt@, tedu@


Revision tags: OPENBSD_5_5_BASE
# 1.3 16-Sep-2013 jmatthew

work out phy addresses before attaching cnmac and pass them to mii_attach
rather than hiding them in the mii read/write functions.

ok dlg@ jasper@ bcallah@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.2 17-Jun-2011 yasuoka

add missing the copyright notice.
delete garbage lines.

ok syuu@


# 1.1 16-Jun-2011 syuu

Ethernet driver merged from IIJ's contribution code.