From: Ben Pfaff Date: Mon, 23 Dec 2013 22:34:01 +0000 (-0800) Subject: dpif: Remove unused 'get_max_ports' from provider interface. X-Git-Tag: sliver-openvswitch-2.1.90-1~10^2~42 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9e5026938cc876c54d068d50381e84fc16397c90;p=sliver-openvswitch.git dpif: Remove unused 'get_max_ports' from provider interface. Nothing ever called this function. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index 3587bbd75..497a5bd86 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -673,12 +673,6 @@ dpif_linux_port_query_by_name(const struct dpif *dpif, const char *devname, return dpif_linux_port_query__(dpif, 0, devname, dpif_port); } -static uint32_t -dpif_linux_get_max_ports(const struct dpif *dpif OVS_UNUSED) -{ - return MAX_PORTS; -} - static uint32_t dpif_linux_port_get_pid(const struct dpif *dpif_, odp_port_t port_no) { @@ -1620,7 +1614,6 @@ const struct dpif_class dpif_linux_class = { dpif_linux_port_del, dpif_linux_port_query_by_number, dpif_linux_port_query_by_name, - dpif_linux_get_max_ports, dpif_linux_port_get_pid, dpif_linux_port_dump_start, dpif_linux_port_dump_next, diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 6ef749566..79d6f0609 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -628,12 +628,6 @@ dpif_netdev_port_query_by_name(const struct dpif *dpif, const char *devname, return error; } -static uint32_t -dpif_netdev_get_max_ports(const struct dpif *dpif OVS_UNUSED) -{ - return MAX_PORTS; -} - static void dp_netdev_free_flow(struct dp_netdev *dp, struct dp_netdev_flow *netdev_flow) { @@ -1464,7 +1458,6 @@ const struct dpif_class dpif_netdev_class = { dpif_netdev_port_del, dpif_netdev_port_query_by_number, dpif_netdev_port_query_by_name, - dpif_netdev_get_max_ports, NULL, /* port_get_pid */ dpif_netdev_port_dump_start, dpif_netdev_port_dump_next, diff --git a/lib/dpif-provider.h b/lib/dpif-provider.h index e16a4263f..adc5242ed 100644 --- a/lib/dpif-provider.h +++ b/lib/dpif-provider.h @@ -144,10 +144,6 @@ struct dpif_class { int (*port_query_by_name)(const struct dpif *dpif, const char *devname, struct dpif_port *port); - /* Returns one greater than the largest port number accepted in flow - * actions. */ - uint32_t (*get_max_ports)(const struct dpif *dpif); - /* Returns the Netlink PID value to supply in OVS_ACTION_ATTR_USERSPACE * actions as the OVS_USERSPACE_ATTR_PID attribute's value, for use in * flows whose packets arrived on port 'port_no'.