summaryrefslogtreecommitdiffstats
path: root/src/net/neighbour.c
diff options
context:
space:
mode:
authorMichael Brown2013-10-31 15:09:43 +0100
committerMichael Brown2013-11-01 03:26:44 +0100
commit5c11ff630440b5ef6d1bfadab06e265f61312369 (patch)
treef0014ce8335637cd92f997c4bb301f9da723edb6 /src/net/neighbour.c
parent[parseopt] Add parse_timeout() (diff)
downloadipxe-5c11ff630440b5ef6d1bfadab06e265f61312369.tar.gz
ipxe-5c11ff630440b5ef6d1bfadab06e265f61312369.tar.xz
ipxe-5c11ff630440b5ef6d1bfadab06e265f61312369.zip
[netdevice] Make all net_driver methods optional
Most network upper-layer drivers do not implement all three methods (probe, notify, and remove). Save code by making all methods optional. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/neighbour.c')
-rw-r--r--src/net/neighbour.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/net/neighbour.c b/src/net/neighbour.c
index c175665a..e3026ce4 100644
--- a/src/net/neighbour.c
+++ b/src/net/neighbour.c
@@ -376,16 +376,6 @@ int neighbour_define ( struct net_device *netdev,
}
/**
- * Update neighbour cache on network device creation
- *
- * @v netdev Network device
- */
-static int neighbour_probe ( struct net_device *netdev __unused ) {
- /* Nothing to do */
- return 0;
-}
-
-/**
* Update neighbour cache on network device state change or removal
*
* @v netdev Network device
@@ -404,7 +394,6 @@ static void neighbour_flush ( struct net_device *netdev ) {
/** Neighbour driver (for net device notifications) */
struct net_driver neighbour_net_driver __net_driver = {
.name = "Neighbour",
- .probe = neighbour_probe,
.notify = neighbour_flush,
.remove = neighbour_flush,
};