fastpath: relicense to GPL-2.0+ with proper NXP copyright attribution
The fastpath stack (CDX, CMM, cmmctl, auto_bridge, FCI, dpa_app) derives from NXP's ASK SDK which is GPL-2.0+ licensed. Several components compile NXP vendor source directly, and others include verbatim GPL headers (list.h, jhash.h, fpp.h). Change all BSD-2-Clause files in the fastpath stack to GPL-2.0+ and add original copyright holders (Mindspeed Technologies, Freescale Semiconductor, NXP) alongside Mono's copyright. Also fix "Ported from" comment in include/desc.h to "Inspired by". Components unaffected: pf_notify (100% original BSD), fmlib (BSD-3-Clause NXP), fmc (MIT NXP).
This commit is contained in:
parent
8f9b3bf487
commit
e8cb4efca3
79 changed files with 263 additions and 79 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# MACHINE=arm64 MACHINE_ARCH=aarch64 CC=cc LD=ld.lld
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
|
||||
KMOD= auto_bridge
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@
|
|||
* FreeBSD port of the Linux auto_bridge kernel module.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2015-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* /dev/autobridge character device.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2015-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef AUTO_BRIDGE_H
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* auto_bridge_private.h — Kernel-private structures
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2015-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef AUTO_BRIDGE_PRIVATE_H
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# CDX (Conntrack Data-plane eXpress) kernel module for FreeBSD
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* Copyright 2017-2018,2021 NXP
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* Copyright 2017-2018,2021-2022 NXP
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -8,8 +8,10 @@
|
|||
* fman_info for use by the CDX runtime.
|
||||
*
|
||||
* Copyright (c) 2026 Mono Technologies Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017-2022 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2026 Mono Technologies Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017-2022 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CDX_DPA_BRIDGE_H
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
* Copyright 2017-2018,2021-2022 NXP
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -9,8 +9,10 @@
|
|||
* cdx_dpa_bridge_destroy() to safely tear down state.
|
||||
*
|
||||
* Copyright (c) 2026 Mono Technologies Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017-2022 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2026 Mono Technologies Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017-2022 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CDX_DPA_INIT_H
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* Copyright 2017-2018,2021-2022 NXP
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
* Copyright 2017,2021 NXP
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
* Copyright 2017-2018,2021 NXP
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -9,9 +9,11 @@
|
|||
* start_init), adapted for use from loadable kernel modules.
|
||||
*
|
||||
* Copyright (c) 2026 Mono Technologies Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017-2022 NXP
|
||||
* All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
# ssh target "cd /tmp/cmm && make && make install"
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
PROG= cmm
|
||||
NO_MAN= yes
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
# sudo make -C /usr/tools base DEVICE=GATEWAY SETTINGS=26.1 TOOLSDIR=/usr/tools
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
SYSROOT?= /usr/obj/usr/src/arm64.aarch64/tmp
|
||||
CC?= cc
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* hardware flow offload on the NXP LS1046A.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* via FCI/CDX for hardware flow offload.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_H
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@
|
|||
* and ffbridge.c (bridge port resolution).
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* is a bridge, CDX needs the physical member port name).
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_BRIDGE_H
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@
|
|||
* programmed into CDX. Expired connections are removed from CDX.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_conn.h — PF state table polling and connection tracking
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_CONN_H
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* FPP commands to CDX via FCI. Used by cmmctl and other tools.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* (e.g., cmmctl) to send FPP commands through CMM to CDX.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_CTRL_H
|
||||
|
|
|
|||
|
|
@ -19,7 +19,10 @@
|
|||
* iface=<name>
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* interface name.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_DENY_H
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* already-ported libfci library.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_fe.h — Forward engine: programs CDX hash tables via FCI
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_FE_H
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* Flow: setkey(8) -> PF_KEY socket -> CMM -> fci_write() -> CDX -> CAAM HW
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* translates them into FCI commands for CDX hardware offload.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_IPSEC_H
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* initial enumeration and PF_ROUTE socket for change notification.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_itf.h — Interface monitoring
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_ITF_H
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* state in the interface table.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* a UDP socket, programs CDX, and tracks state.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_L2TP_H
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@
|
|||
* VLAN->LAGG->ETH resolution works.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_lagg.h — LAGG interface offload
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_LAGG_H
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
* Ported from NXP ASK module_mcast.c / module_mc4.c / module_mc6.c.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* via FCI CMD_MC4/MC6_MULTICAST.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_MCAST_H
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@
|
|||
* directly — the same method arp(8) uses.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_neigh.h — ARP/NDP neighbor resolution
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_NEIGH_H
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* so the hardware can strip/insert PPPoE headers in the fast path.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_pppoe.h — PPPoE session offload
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_PPPOE_H
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* results. Monitors route changes via the same socket.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_route.h — Route lookup and caching
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_ROUTE_H
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* routes, interfaces, and neighbor changes on FreeBSD.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_rtsock.h — PF_ROUTE socket wrapper
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_RTSOCK_H
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* socket, resolves routes, and programs CDX via FPP_CMD_IPV4/6_SOCK_*.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* control socket; CMM resolves routes and programs CDX.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_SOCKET_H
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* FPP_CMD_TUNNEL_ADD/DEL for hardware offload.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_tunnel.h — Tunnel interface offload
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_TUNNEL_H
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* mapping for flow classification.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_vlan.h — VLAN interface offload
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_VLAN_H
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* engine recognizes WiFi as a valid egress/ingress interface.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmm_wifi.h — WiFi VAP offload
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMM_WIFI_H
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
# sudo make -C /usr/tools base DEVICE=GATEWAY SETTINGS=26.1 TOOLSDIR=/usr/tools
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
SYSROOT?= /usr/obj/usr/src/arm64.aarch64/tmp
|
||||
CC?= cc
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* sends FPP commands for QoS, statistics, and other modules.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* cmmctl.h — CMM control tool shared definitions
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef CMMCTL_H
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@
|
|||
* cmmctl bridge reset
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* cmmctl ff ipsec-frag disable Disable IPsec pre-fragmentation
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,10 @@
|
|||
* a CDX ICC handler is implemented.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* cmmctl l2tp del <ifname>
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,10 @@
|
|||
* a CDX MACVLAN handler is implemented.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,10 @@
|
|||
* cmmctl mc6 reset
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,10 @@
|
|||
* registered via "cmmctl socket open".
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <inttypes.h>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@
|
|||
* <port> is a CDX port index (0-7).
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,10 @@
|
|||
* cmmctl prf dmem <addr> [len] Display CDX memory (hex words)
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* it through the CMM control socket; CMM forwards to CDX via FCI.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,10 @@
|
|||
* show queries CDX directly via FPP_CMD_SOCKETSTATS_STATUS/ENTRY.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* all stat commands directly.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
* show queries CDX directly via FPP_CMD_TUNNEL_QUERY.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* cmmctl tx query <ifname>
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
# - libxml2 cross-compiled for arm64 (in sysroot)
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
SYSROOT?= /usr/obj/usr/src/arm64.aarch64/tmp
|
||||
CC?= cc
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# FCI (Fast Control Interface) kernel module for FreeBSD
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
* Replaces the Linux netlink-based fci.c.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* Replaces Linux netlink-based FCI IPC.
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
#ifndef _FCI_FREEBSD_H_
|
||||
#define _FCI_FREEBSD_H_
|
||||
|
|
|
|||
|
|
@ -4,7 +4,10 @@
|
|||
* Exports FCI statistics under dev.fci.stats.*
|
||||
*
|
||||
* Copyright 2026 Mono Technologies Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
* Copyright (C) 2007 Mindspeed Technologies, Inc.
|
||||
* Copyright 2014-2016 Freescale Semiconductor, Inc.
|
||||
* Copyright 2017, 2021 NXP
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* CAAM descriptor composition header — FreeBSD port.
|
||||
*
|
||||
* Ported from Linux drivers/crypto/caam/desc.h. Provides all CAAM
|
||||
* Inspired by Linux drivers/crypto/caam/desc.h. Provides all CAAM
|
||||
* descriptor instruction macros needed by the CDX IPsec offload code.
|
||||
* Self-contained — no OS-specific includes required (pure #defines).
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue