2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

Eliminate ODPL_* from userspace-facing interface.

Reviewed by Justin Pettit.
This commit is contained in:
Ben Pfaff
2011-01-26 07:14:04 -08:00
parent c75d4dcf95
commit 82272eded1
8 changed files with 84 additions and 62 deletions

View File

@@ -996,12 +996,8 @@ static int
dpif_netdev_recv_set_mask(struct dpif *dpif, int listen_mask)
{
struct dpif_netdev *dpif_netdev = dpif_netdev_cast(dpif);
if (!(listen_mask & ~ODPL_ALL)) {
dpif_netdev->listen_mask = listen_mask;
return 0;
} else {
return EINVAL;
}
dpif_netdev->listen_mask = listen_mask;
return 0;
}
static struct dp_netdev_queue *
@@ -1090,7 +1086,7 @@ dp_netdev_port_input(struct dp_netdev *dp, struct dp_netdev_port *port,
dp->n_hit++;
} else {
dp->n_missed++;
dp_netdev_output_control(dp, packet, _ODPL_MISS_NR, &key, 0);
dp_netdev_output_control(dp, packet, DPIF_UC_MISS, &key, 0);
}
}
@@ -1366,7 +1362,7 @@ dp_netdev_execute_actions(struct dp_netdev *dp,
break;
case ODPAT_CONTROLLER:
dp_netdev_output_control(dp, packet, _ODPL_ACTION_NR,
dp_netdev_output_control(dp, packet, DPIF_UC_ACTION,
key, nl_attr_get_u64(a));
break;