diff options
author | Jianhua Xie <jianhua.xie@freescale.com> | 2014-06-30 10:09:59 (GMT) |
---|---|---|
committer | Richard Schmitt <richard.schmitt@freescale.com> | 2014-08-06 20:17:27 (GMT) |
commit | 94a0df86ff6cc8586d84ddef29cbd9580f463f99 (patch) | |
tree | 590caa25db3269d69526aca304b5dbf5fa6ab113 /drivers | |
parent | d5c6155c2ac732abaa8e35a336377a73ab27f140 (diff) | |
download | linux-fsl-qoriq-94a0df86ff6cc8586d84ddef29cbd9580f463f99.tar.xz |
bonding: fix wrong PCD Extract field
fix wrong memset parameters for PCD Extract field
ethernet.dst.
Signed-off-by: Jianhua Xie <jianhua.xie@freescale.com>
Change-Id: I8f240ccce2743f1d4da7825e7cfaf0894e5fa33d
Reviewed-on: http://git.am.freescale.net:8181/14200
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Jiafei Pan <Jiafei.Pan@freescale.com>
Reviewed-by: Richard Schmitt <richard.schmitt@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bonding/hw_oh_pcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/hw_oh_pcd.c b/drivers/net/bonding/hw_oh_pcd.c index 424281b..ce75048 100644 --- a/drivers/net/bonding/hw_oh_pcd.c +++ b/drivers/net/bonding/hw_oh_pcd.c @@ -199,7 +199,7 @@ static int alloc_pcd_mem(struct fm_port *fm_port, uint8_t numOfSchemes, ea_eth_sa; /* Extract field:ethernet.dst */ - memset(&ea_eth_sa, 0, sizeof(t_FmPcdExtractEntry)); + memset(&ea_eth_da, 0, sizeof(t_FmPcdExtractEntry)); ea_eth_da.type = e_FM_PCD_EXTRACT_BY_HDR; ea_eth_da.extractByHdr.hdr = HEADER_TYPE_ETH; ea_eth_da.extractByHdr.hdrIndex = e_FM_PCD_HDR_INDEX_NONE; |