Commit d996debf authored by Alessandro Rubini's avatar Alessandro Rubini

workaround for wrpc: frame offsets are 0

This is a temporary workaround. We are going to fix the tx/rx functions
to received the header and payload together, but currently they are
separate so the offset must be 0 for raw ethernet.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 81278bd1
......@@ -41,6 +41,10 @@ void pp_prepare_pointers(struct pp_instance *ppi)
case PPSI_PROTO_RAW:
ppi->tx_offset = ETH_HLEN; /* 14, I know! */
ppi->rx_offset = ETH_HLEN;
#ifdef CONFIG_ARCH_WRPC
ppi->tx_offset = 0; /* Currently, wrpc has a separate header */
ppi->rx_offset = 0;
#endif
break;
case PPSI_PROTO_VLAN:
ppi->tx_offset = sizeof(struct pp_vlanhdr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment