mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
c608f70325
Qualcomm SSDK is driver for Qualcomm Atheros switches and PHY-s. It is quite complicated and used by rest of the Qualcomm SDK stack for anything switch or PHY related. It is required for IPQ807x support as currently, there is no better driver for the built-in switch or UNIPHY. So, lets add the fixed-up version that supports kernel 5.15 for use on ipq807x target until a better driver is available. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Signed-off-by: Robert Marko <robimarko@gmail.com>
49 lines
1.5 KiB
Diff
49 lines
1.5 KiB
Diff
From c06e6edfb740d0ba0b804fa16d6222e257349089 Mon Sep 17 00:00:00 2001
|
|
From: Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
|
Date: Fri, 23 Sep 2022 08:30:03 -0500
|
|
Subject: [PATCH 11/11] Revert "qca-ssdk: remove bridge fdb entry for the
|
|
authentication failed mac"
|
|
|
|
This change causes an undefined reference to "br_fdb_delete_by_netdev".
|
|
This reverts commit 144f02b982c8c707aaf84b57d8c277d03d877236.
|
|
|
|
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
|
---
|
|
src/ref/ref_acl.c | 11 -----------
|
|
1 file changed, 11 deletions(-)
|
|
|
|
--- a/src/ref/ref_acl.c
|
|
+++ b/src/ref/ref_acl.c
|
|
@@ -23,7 +23,6 @@
|
|
#include "ssdk_init.h"
|
|
#include "ssdk_plat.h"
|
|
#include <linux/etherdevice.h>
|
|
-#include <linux/if_bridge.h>
|
|
|
|
/* entry 0-1 is for global deny all and accept eapol rule
|
|
entry 2-9 is for phy port1 specific mac accept rule
|
|
@@ -128,7 +127,6 @@ _ref_acl_mac_entry_create_rule(a_uint32_
|
|
{
|
|
sw_error_t rv = SW_OK;
|
|
fal_acl_rule_t rule = {0};
|
|
- struct net_device *eth_dev = NULL;
|
|
a_uint32_t port_id = ssdk_ifname_to_port(dev_id, entry->ifname);
|
|
SSDK_DEBUG("port_id %d entry_idx %d\n", port_id, entry_idx);
|
|
|
|
@@ -224,15 +222,6 @@ _ref_acl_mac_entry_create_rule(a_uint32_
|
|
ref_acl_mac_entry[dev_id][entry_idx].port_map = BIT(port_id);
|
|
ref_acl_mac_entry[dev_id][entry_idx].acl_policy = 1;
|
|
}
|
|
- else if (!is_deny_all_mac(entry->src_mac.uc) && !entry->acl_policy)
|
|
- {
|
|
- eth_dev = dev_get_by_name(&init_net, entry->ifname);
|
|
- if (eth_dev)
|
|
- {
|
|
- br_fdb_delete_by_netdev(eth_dev, entry->src_mac.uc, 0);
|
|
- dev_put(eth_dev);
|
|
- }
|
|
- }
|
|
return rv;
|
|
}
|
|
|