summaryrefslogtreecommitdiff
path: root/net/l2tp
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@free-electrons.com>2017-08-25 16:14:17 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-28 11:24:52 -0700
commit4c22868264516fe0c42817a87f37efb44254e7a9 (patch)
tree4e10747dc444ba8d8ad3cf7d2df15d17f1b5ec06 /net/l2tp
parent3b638f0f0b94fc41f419033f2a02c49d52f3fec9 (diff)
net: mvpp2: fix the mac address used when using PPv2.2
The mac address is only retrieved from h/w when using PPv2.1. Otherwise the variable holding it is still checked and used if it contains a valid value. As the variable isn't initialized to an invalid mac address value, we end up with random mac addresses which can be the same for all the ports handled by this PPv2 driver. Fixes this by initializing the h/w mac address variable to {0}, which is an invalid mac address value. This way the random assignation fallback is called and all ports end up with their own addresses. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Fixes: 2697582144dd ("net: mvpp2: handle misc PPv2.1/PPv2.2 differences") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
0 files changed, 0 insertions, 0 deletions