summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-11-14 16:54:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-11-14 16:54:38 +0100
commitaf3ab6492459a70f9fe572c3a42e6cdb6cbc44c4 (patch)
tree5d02d19f76ea5ac1b2502fb8311983ad220a52e3 /include
parent66544641b2dd00c37e16d8e1ac39a34ec4e57cb8 (diff)
parentff9c801b9e807fd3b429849e654725591a3d1eb8 (diff)
downloadbarebox-af3ab6492459a70f9fe572c3a42e6cdb6cbc44c4.tar.gz
barebox-af3ab6492459a70f9fe572c3a42e6cdb6cbc44c4.tar.xz
Merge branch 'for-next/promisc'
Diffstat (limited to 'include')
-rw-r--r--include/dsa.h2
-rw-r--r--include/net.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/dsa.h b/include/dsa.h
index 75a939f2cb..f428aa74a5 100644
--- a/include/dsa.h
+++ b/include/dsa.h
@@ -58,7 +58,7 @@ struct dsa_ops {
};
struct dsa_port {
- struct device_d dev;
+ struct device_d *dev;
struct dsa_switch *ds;
unsigned int index;
struct eth_device edev;
diff --git a/include/net.h b/include/net.h
index 338033d698..f9d1fbfc18 100644
--- a/include/net.h
+++ b/include/net.h
@@ -49,6 +49,8 @@ struct eth_device {
int *length);
void (*rx_monitor) (struct eth_device*, void *packet, int length);
void (*tx_monitor) (struct eth_device*, void *packet, int length);
+ /* Set promiscuous mode */
+ int (*set_promisc) (struct eth_device*, bool enable);
struct eth_device *next;
void *priv;
@@ -113,6 +115,7 @@ int eth_send(struct eth_device *edev, void *packet, int length); /* Send a pa
int eth_rx(void); /* Check for received packets */
void eth_open_all(void);
struct eth_device *of_find_eth_device_by_node(struct device_node *np);
+int eth_set_promisc(struct eth_device *edev, bool enable);
/* associate a MAC address to a ethernet device. Should be called by
* board code for boards which store their MAC address at some unusual