/*
* Distributed under the terms of the GNU GPL version 2.
- * Copyright (c) 2007, 2008, 2009, 2010 Nicira Networks.
+ * Copyright (c) 2007, 2008, 2009, 2010, 2011 Nicira Networks.
*
* Significant portions of this file may be copied from parts of the Linux
* kernel, by Linus Torvalds and others.
if (!skb)
return -ENOMEM;
- upcall.type = _ODPL_ACTION_NR;
+ upcall.cmd = ODP_PACKET_CMD_ACTION;
upcall.key = key;
upcall.userdata = arg;
upcall.sample_pool = 0;
if (unlikely(!nskb))
return;
- upcall.type = _ODPL_SFLOW_NR;
+ upcall.cmd = ODP_PACKET_CMD_SAMPLE;
upcall.key = key;
upcall.userdata = 0;
upcall.sample_pool = atomic_read(&p->sflow_pool);