Skip to content
Permalink
Browse files

teamd: lw: move __get_port_curr_hwaddr call into "validate" section

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
  • Loading branch information...
jpirko committed Oct 17, 2012
1 parent 8777fab commit 13e5d08079ec6e9926b3ab2d590d3026f205608d
Showing with 4 additions and 4 deletions.
  1. +4 −4 teamd/teamd_link_watch.c
@@ -703,10 +703,6 @@ static int lw_ap_receive(struct lw_psr_port_priv *psr_ppriv)
struct in_addr dst;
char *pos;

err = __get_port_curr_hwaddr(psr_ppriv, &ll_my, 0);
if (err)
return err;

err = teamd_recvfrom(psr_ppriv->sock, buf, sizeof(buf), 0,
(struct sockaddr *) &ll_from, sizeof(ll_from));
if (err <= 0)
@@ -716,6 +712,10 @@ static int lw_ap_receive(struct lw_psr_port_priv *psr_ppriv)
return 0;

if (ap_ppriv->validate) {
err = __get_port_curr_hwaddr(psr_ppriv, &ll_my, 0);
if (err)
return err;

pos = buf;
buf_pull(&pos, &ah, sizeof(ah));
if (ah.ar_hrd != htons(ll_my.sll_hatype) ||

0 comments on commit 13e5d08

Please sign in to comment.
You can’t perform that action at this time.