DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] rte_flow() usage of htonl() for ipv4 addr masks?
@ 2020-08-10  2:03 Arvind Narayanan
  2020-08-10  2:56 ` Cliff Burdick
  0 siblings, 1 reply; 4+ messages in thread
From: Arvind Narayanan @ 2020-08-10  2:03 UTC (permalink / raw)
  To: users

Hi,

In the flow_filtering sample application, the IP's mask was set without
using htonl().
https://github.com/DPDK/dpdk/blob/master/examples/flow_filtering/flow_blocks.c#L85

Another DPDK page <https://doc.dpdk.org/guides/howto/rte_flow.html> shows
how a testpmd command is translated to C code.
On this page though, Example 4.2 (Range IPv4 drop) has used htonl() to set
the mask.

Any clarification on how to load the mask would be helpful.

Thanks,
Arvind

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-10 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10  2:03 [dpdk-users] rte_flow() usage of htonl() for ipv4 addr masks? Arvind Narayanan
2020-08-10  2:56 ` Cliff Burdick
2020-08-10  3:14   ` Arvind Narayanan
2020-08-10 15:18     ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).