diff mbox

[odp-libpcap] use ODP_PKTIO_TYPE_SOCKET_BASIC

Message ID 1396557913-21428-1-git-send-email-maxim.uvarov@linaro.org
State Not Applicable
Headers show

Commit Message

Maxim Uvarov April 3, 2014, 8:45 p.m. UTC
ODP_PKTIO_TYPE_SOCKET type of I/O was splitted to
_BASIC _MMSG _MMAP.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 pcap-linux.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Anders Roxell April 3, 2014, 9:39 p.m. UTC | #1
+lng-odp@lists.linaro.org

On 2014-04-04 00:45, Maxim Uvarov wrote:
> ODP_PKTIO_TYPE_SOCKET type of I/O was splitted to
> _BASIC _MMSG _MMAP.
> 
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> ---
>  pcap-linux.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/pcap-linux.c b/pcap-linux.c
> index 36d054a..790f8f6 100644
> --- a/pcap-linux.c
> +++ b/pcap-linux.c
> @@ -6220,7 +6220,8 @@ pcap_odp_init(pcap_t *handle)
>  	} else {
>  #endif
>  		memset(&pparams.sock_params, 0, sizeof(pparams.sock_params));
> -		pparams.sock_params.type = ODP_PKTIO_TYPE_SOCKET;
> +		pparams.sock_params.type = ODP_PKTIO_TYPE_SOCKET_BASIC;
> +		pparams.sock_params.fanout = 0;
>  		printf("  pktio type: socket\n");
>  #ifdef ODP_HAVE_NETMAP
>  	}
> -- 
> 1.8.5.1.163.gd7aced9
> 
> -- 
> You received this message because you are subscribed to the Google Groups "LNG ODP Sub-team - lng-odp@linaro.org" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to lng-odp+unsubscribe@linaro.org.
> To post to this group, send email to lng-odp@linaro.org.
> Visit this group at http://groups.google.com/a/linaro.org/group/lng-odp/.
> To view this discussion on the web visit https://groups.google.com/a/linaro.org/d/msgid/lng-odp/1396557913-21428-1-git-send-email-maxim.uvarov%40linaro.org.
> For more options, visit https://groups.google.com/a/linaro.org/d/optout.
diff mbox

Patch

diff --git a/pcap-linux.c b/pcap-linux.c
index 36d054a..790f8f6 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -6220,7 +6220,8 @@  pcap_odp_init(pcap_t *handle)
 	} else {
 #endif
 		memset(&pparams.sock_params, 0, sizeof(pparams.sock_params));
-		pparams.sock_params.type = ODP_PKTIO_TYPE_SOCKET;
+		pparams.sock_params.type = ODP_PKTIO_TYPE_SOCKET_BASIC;
+		pparams.sock_params.fanout = 0;
 		printf("  pktio type: socket\n");
 #ifdef ODP_HAVE_NETMAP
 	}