dp: tx: Fractional byte calculation is scaled by 1024 instead of 1000.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com> Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
This commit is contained in:
parent
0f275f26d7
commit
dd5ecd1b10
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ void XDp_TxSetMsaValues(XDp *InstancePtr, u8 Stream)
|
|||
XDp_WriteReg(ConfigPtr->BaseAddr, XDP_TX_MIN_BYTES_PER_TU +
|
||||
StreamOffset[Stream - 1], MsaConfig->AvgBytesPerTU / 1000);
|
||||
XDp_WriteReg(ConfigPtr->BaseAddr, XDP_TX_FRAC_BYTES_PER_TU +
|
||||
StreamOffset[Stream - 1], MsaConfig->AvgBytesPerTU % 1000);
|
||||
StreamOffset[Stream - 1], MsaConfig->AvgBytesPerTU % 1024);
|
||||
XDp_WriteReg(ConfigPtr->BaseAddr, XDP_TX_INIT_WAIT +
|
||||
StreamOffset[Stream - 1], MsaConfig->InitWait);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue