zephyr/samples/net/dsa
Jukka Rissanen ac3cb9dac0 net: Change the net_linkaddr struct to not use pointers
Previously the net_linkaddr struct had pointers to the link address.
This is error prone and difficult to handle if cloning the packet as
those pointers can point to wrong place. Mitigate this issue by
allocating the space for link address in net_linkaddr struct. This will
increase the size of the net_pkt by 4 octets for IEEE 802.15.4 where the
link address length is 8, but there no increase in size if link address
is 6 bytes like in Ethernet/Wi-Fi.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-03-17 16:25:22 +01:00
..
boards samples: net: dsa: add mimxrt1180_evk board support 2025-02-11 22:03:48 +01:00
src net: Change the net_linkaddr struct to not use pointers 2025-03-17 16:25:22 +01:00
CMakeLists.txt samples: net: dsa: rework for flexibility and extensibility 2025-02-11 22:03:48 +01:00
Kconfig samples: net: dsa: rework for flexibility and extensibility 2025-02-11 22:03:48 +01:00
prj.conf samples: net: dsa: move platform specific options to board 2025-02-11 22:03:48 +01:00
README.rst
sample.yaml samples: net: dsa: add mimxrt1180_evk board support 2025-02-11 22:03:48 +01:00

.. zephyr:code-sample:: dsa
   :name: DSA (Distributed Switch Architecture)
   :relevant-api: DSA

   Test and debug Distributed Switch Architecture

Overview
********

Example on testing/debugging Distributed Switch Architecture

The source code for this sample application can be found at:
:zephyr_file:`samples/net/dsa`.

Requirements
************

- :ref:`networking_with_host`

Building and Running
********************

Host machine with :zephyr:board:`ip_k66f` board from Segger.

Follow these steps to build the DSA sample application:

.. zephyr-app-commands::
   :zephyr-app: samples/net/dsa
   :board: <board to use>
   :conf: prj.conf
   :goals: build
   :compact: