[RFC,2/5] net: add stub for RARP packet generation on Windows

Message ID 20200228060727.192491-3-dmitry.kozliuk@gmail.com (mailing list archive)
State Not Applicable, archived
Delegated to: Thomas Monjalon
Headers
Series virtio-net support for Windows draft |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK

Commit Message

Dmitry Kozlyuk Feb. 28, 2020, 6:07 a.m. UTC
  RARP packets are optionally generated by virtio-net PMD.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
---
 lib/librte_net/rte_net.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
  

Patch

diff --git a/lib/librte_net/rte_net.c b/lib/librte_net/rte_net.c
index 56a13e3c4..8391ceae7 100644
--- a/lib/librte_net/rte_net.c
+++ b/lib/librte_net/rte_net.c
@@ -487,3 +487,15 @@  uint32_t rte_net_get_ptype(const struct rte_mbuf *m,
 
 	return pkt_type;
 }
+
+#ifdef _WIN64
+struct rte_mbuf * __rte_experimental
+rte_net_make_rarp_packet(struct rte_mempool *mpool,
+		const struct ether_addr *mac)
+{
+	RTE_SET_USED(mpool);
+	RTE_SET_USED(mac);
+	RTE_LOG(ERR, EAL, "RARP packet creation not implemented for Windows\n");
+	return NULL;
+}
+#endif