mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 10:46:41 +00:00
87b03d9961
Add the required changes for kernel 6.1 support. Signed-off-by: Robert Marko <robimarko@gmail.com>
58 lines
2.2 KiB
Diff
58 lines
2.2 KiB
Diff
From ff9284e3a59982c78a0132e6f2c5e3f04ba11472 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Thu, 29 Sep 2022 20:37:46 +0200
|
|
Subject: [PATCH 15/16] nss-dp: netdev mac_addr is const
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
exports/nss_dp_api_if.h | 2 +-
|
|
hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c | 2 +-
|
|
hal/dp_ops/edma_dp/edma_v2/edma_dp.c | 2 +-
|
|
hal/dp_ops/syn_gmac_dp/syn_dp.c | 2 +-
|
|
4 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/exports/nss_dp_api_if.h
|
|
+++ b/exports/nss_dp_api_if.h
|
|
@@ -83,7 +83,7 @@ struct nss_dp_data_plane_ops {
|
|
int (*close)(struct nss_dp_data_plane_ctx *dpc);
|
|
int (*link_state)(struct nss_dp_data_plane_ctx *dpc,
|
|
uint32_t link_state);
|
|
- int (*mac_addr)(struct nss_dp_data_plane_ctx *dpc, uint8_t *addr);
|
|
+ int (*mac_addr)(struct nss_dp_data_plane_ctx *dpc, const uint8_t *addr);
|
|
int (*change_mtu)(struct nss_dp_data_plane_ctx *dpc, uint32_t mtu);
|
|
netdev_tx_t (*xmit)(struct nss_dp_data_plane_ctx *dpc, struct sk_buff *os_buf);
|
|
void (*set_features)(struct nss_dp_data_plane_ctx *dpc);
|
|
--- a/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c
|
|
+++ b/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c
|
|
@@ -494,7 +494,7 @@ static int edma_if_link_state(struct nss
|
|
/*
|
|
* edma_if_mac_addr()
|
|
*/
|
|
-static int edma_if_mac_addr(struct nss_dp_data_plane_ctx *dpc, uint8_t *addr)
|
|
+static int edma_if_mac_addr(struct nss_dp_data_plane_ctx *dpc, const uint8_t *addr)
|
|
{
|
|
return NSS_DP_SUCCESS;
|
|
}
|
|
--- a/hal/dp_ops/edma_dp/edma_v2/edma_dp.c
|
|
+++ b/hal/dp_ops/edma_dp/edma_v2/edma_dp.c
|
|
@@ -99,7 +99,7 @@ static int edma_dp_link_state(struct nss
|
|
* edma_dp_mac_addr()
|
|
* EDMA data plane MAC address change API
|
|
*/
|
|
-static int edma_dp_mac_addr(struct nss_dp_data_plane_ctx *dpc, uint8_t *addr)
|
|
+static int edma_dp_mac_addr(struct nss_dp_data_plane_ctx *dpc, const uint8_t *addr)
|
|
{
|
|
return NSS_DP_SUCCESS;
|
|
}
|
|
--- a/hal/dp_ops/syn_gmac_dp/syn_dp.c
|
|
+++ b/hal/dp_ops/syn_gmac_dp/syn_dp.c
|
|
@@ -289,7 +289,7 @@ static int syn_dp_if_link_state(struct n
|
|
/*
|
|
* syn_dp_if_mac_addr()
|
|
*/
|
|
-static int syn_dp_if_mac_addr(struct nss_dp_data_plane_ctx *dpc, uint8_t *addr)
|
|
+static int syn_dp_if_mac_addr(struct nss_dp_data_plane_ctx *dpc, const uint8_t *addr)
|
|
{
|
|
return NSS_DP_SUCCESS;
|
|
}
|