Commit eec5473b authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw: fix endpoint configuration in tdc and fd firmware

parent b62bd1fb
......@@ -927,20 +927,18 @@ static int wrtd_o_sim_init(void)
*/
static int wrtd_o_init(void)
{
static const struct trtl_ep_eth_address addr = {
struct trtl_ep_eth_address addr = {
.type = TRTL_EP_FRAME_UDP,
.dst_mac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
.dst_ip = 0xFFFFFFFF,
.src_ip = 0xC0A85A12,
.dst_port = WRTD_IN_PORT,
.src_port= WRTD_OUT_PORT,
.dst_port = WRTD_OUT_PORT,
.ethertype = 0x800, /* IPv4 */
.filter = TRTL_EP_FILTER_UDP |
TRTL_EP_FILTER_DST_PORT |
TRTL_EP_FILTER_DST_IP,
TRTL_EP_FILTER_DST_PORT,
};
int i, j;
addr.filter |= TRTL_EP_FILTER_ENABLE;
if (!wr_present()) {
pr_error("WhiteRabbit not found\n\r");
return -EINVAL;
......
......@@ -452,14 +452,12 @@ static int wrtd_i_init(void)
struct trtl_ep_eth_address addr = {
.type = TRTL_EP_FRAME_UDP,
.dst_mac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
.dst_ip = 0xFFFFFF, /* broadcast on 255.255.255.255 */
.dst_ip = 0xFFFFFFFF, /* broadcast on 255.255.255.255 */
.src_ip = 0xC0A85A11,
.dst_port = WRTD_OUT_PORT,
.src_port = WRTD_IN_PORT,
.ethertype = 0x800, /* IPv4 */
.filter = TRTL_EP_FILTER_UDP |
TRTL_EP_FILTER_DST_PORT |
TRTL_EP_FILTER_DST_IP,
.filter = 0 /* only the TX path of the endpoint is used */
};
int i;
......
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