uc->mss = rmt->mss ? rmt->mss : udp_default_mtu (um, uc->c_is_ip4);
if (rmt->peer.sw_if_index != ENDPOINT_INVALID_INDEX)
uc->sw_if_index = rmt->peer.sw_if_index;
- uc->flags |= UDP_CONN_F_OWNS_PORT;
- if (rmt->transport_flags & TRANSPORT_CFG_F_CONNECTED)
- {
- uc->flags |= UDP_CONN_F_CONNECTED;
- }
- else
- {
- clib_spinlock_init (&uc->rx_lock);
- uc->c_flags |= TRANSPORT_CONNECTION_F_CLESS;
- }
+ uc->flags |= UDP_CONN_F_OWNS_PORT | UDP_CONN_F_CONNECTED;
if (!um->csum_offload)
uc->cfg_flags |= UDP_CFG_F_NO_CSUM_OFFLOAD;
uc->next_node_index = rmt->next_node_index;