diff options
| author | Tim Harvey <[email protected]> | 2021-06-30 16:50:05 -0700 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2021-07-10 18:12:41 +0200 |
| commit | 631f3afbef58a95f39bc46a0f37ce4d96d07d834 (patch) | |
| tree | ffc3c9ad3a4843bdf1ce838377ea36f089bb46e9 /include | |
| parent | 69c81d6546e2fb12acf8ebf0d64790eba193686c (diff) | |
net: add set_promisc function to enable/disable Promiscuous mode
Enabling promiscuous mode can be useful for DSA switches where each port
has its own MAC address.
Signed-off-by: Tim Harvey <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index b95d6a6f60e..cec8c986182 100644 --- a/include/net.h +++ b/include/net.h @@ -158,6 +158,7 @@ enum eth_recv_flags { * ROM on the board. This is how the driver should expose it * to the network stack. This function should fill in the * eth_pdata::enetaddr field - optional + * set_promisc: Enable or Disable promiscuous mode */ struct eth_ops { int (*start)(struct udevice *dev); @@ -168,6 +169,7 @@ struct eth_ops { int (*mcast)(struct udevice *dev, const u8 *enetaddr, int join); int (*write_hwaddr)(struct udevice *dev); int (*read_rom_hwaddr)(struct udevice *dev); + int (*set_promisc)(struct udevice *dev, bool enable); }; #define eth_get_ops(dev) ((struct eth_ops *)(dev)->driver->ops) |
