Rename devif_loopback_out to devi_loopback
This commit is contained in:
parent
11a1b2598e
commit
9bc951a335
@ -1046,7 +1046,7 @@ static int c5471_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->c_dev))
|
||||
if (!devif_loopback(&priv->c_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -600,7 +600,7 @@ static int imxrt_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -571,7 +571,7 @@ static int kinetis_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -716,7 +716,7 @@ static int lpc17_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->lp_dev))
|
||||
if (!devif_loopback(&priv->lp_dev))
|
||||
{
|
||||
/* Send this packet. In this context, we know that there is space for
|
||||
* at least one more packet in the descriptor list.
|
||||
|
@ -1165,7 +1165,7 @@ static int lpc43_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -790,7 +790,7 @@ static int lpc54_eth_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->eth_dev))
|
||||
if (!devif_loopback(&priv->eth_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -889,7 +889,7 @@ static int sam_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -898,7 +898,7 @@ static int sam_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1233,7 +1233,7 @@ static int sam_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -830,7 +830,7 @@ static int sam_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1547,7 +1547,7 @@ static int sam_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1271,7 +1271,7 @@ static int stm32_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1305,7 +1305,7 @@ static int stm32_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -644,7 +644,7 @@ static int tiva_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->ld_dev))
|
||||
if (!devif_loopback(&priv->ld_dev))
|
||||
{
|
||||
/* Send the packet. tiva_transmit() will return zero if the
|
||||
* packet was successfully handled.
|
||||
|
@ -1273,7 +1273,7 @@ static int tiva_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -244,7 +244,7 @@ static int emac_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->d_dev))
|
||||
if (!devif_loopback(&priv->d_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1149,7 +1149,7 @@ static int pic32mx_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->pd_dev))
|
||||
if (!devif_loopback(&priv->pd_dev))
|
||||
{
|
||||
/* Send this packet. In this context, we know that there is space for
|
||||
* at least one more packet in the descriptor list.
|
||||
|
@ -1176,7 +1176,7 @@ static int pic32mz_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->pd_dev))
|
||||
if (!devif_loopback(&priv->pd_dev))
|
||||
{
|
||||
/* Send this packet. In this context, we know that there is space for
|
||||
* at least one more packet in the descriptor list.
|
||||
|
@ -334,7 +334,7 @@ static int misoc_net_txpoll(FAR struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->misoc_net_dev))
|
||||
if (!devif_loopback(&priv->misoc_net_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -142,7 +142,7 @@ static int sim_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&g_sim_dev))
|
||||
if (!devif_loopback(&g_sim_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1147,7 +1147,7 @@ static int ez80emac_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet. ez80emac_transmit() will return zero if the
|
||||
* packet was successfully handled.
|
||||
|
@ -819,7 +819,7 @@ static int dm9x_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dm_dev))
|
||||
if (!devif_loopback(&priv->dm_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1213,7 +1213,7 @@ static int enc_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -1194,7 +1194,7 @@ static int enc_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -388,7 +388,7 @@ static int ftmac100_txpoll(struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->ft_dev))
|
||||
if (!devif_loopback(&priv->ft_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -304,7 +304,7 @@ static int skel_txpoll(FAR struct net_driver_s *dev)
|
||||
* don't attmpt to put it on the wire.
|
||||
*/
|
||||
|
||||
if (!devif_loopback_out(&priv->sk_dev))
|
||||
if (!devif_loopback(&priv->sk_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -405,7 +405,7 @@ static int slip_txpoll(FAR struct net_driver_s *dev)
|
||||
|
||||
if (priv->dev.d_len > 0)
|
||||
{
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
slip_transmit(priv);
|
||||
}
|
||||
|
@ -400,7 +400,7 @@ static int cdcecm_txpoll(FAR struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->dev))
|
||||
if (!devif_loopback(&priv->dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -994,7 +994,7 @@ static int rndis_txpoll(FAR struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->netdev))
|
||||
if (!devif_loopback(&priv->netdev))
|
||||
{
|
||||
ret = rndis_transmit(priv);
|
||||
}
|
||||
|
@ -473,7 +473,7 @@ static int bcmf_txpoll(FAR struct net_driver_s *dev)
|
||||
}
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
if (!devif_loopback_out(&priv->bc_dev))
|
||||
if (!devif_loopback(&priv->bc_dev))
|
||||
{
|
||||
/* Send the packet */
|
||||
|
||||
|
@ -569,7 +569,7 @@ void neighbor_out(FAR struct net_driver_s *dev);
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: devif_loopback_out
|
||||
* Name: devif_loopback
|
||||
*
|
||||
* Description:
|
||||
* This function should be called before sending out a packet. The function
|
||||
@ -583,7 +583,7 @@ void neighbor_out(FAR struct net_driver_s *dev);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int devif_loopback_out(FAR struct net_driver_s *dev);
|
||||
int devif_loopback(FAR struct net_driver_s *dev);
|
||||
|
||||
/****************************************************************************
|
||||
* Carrier detection
|
||||
|
@ -83,7 +83,7 @@ static bool is_loopback(FAR struct net_driver_s *dev)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: devif_loopback_out
|
||||
* Name: devif_loopback
|
||||
*
|
||||
* Description:
|
||||
* This function should be called before sending out a packet. The function
|
||||
@ -97,7 +97,7 @@ static bool is_loopback(FAR struct net_driver_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int devif_loopback_out(FAR struct net_driver_s *dev)
|
||||
int devif_loopback(FAR struct net_driver_s *dev)
|
||||
{
|
||||
if (!is_loopback(dev))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user