mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
dpif: Remove unused 'get_max_ports' from provider interface.
Nothing ever called this function. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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'.
|
||||
|
||||
Reference in New Issue
Block a user