diff options
author | Harini Katakam <harini.katakam@xilinx.com> | 2019-06-27 09:20:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-29 21:09:18 +0300 |
commit | a8ee4dc1b5937ef60e04e11c6dd6039099d1069d (patch) | |
tree | 92b15d5d3bdd00ea9586cd388b8349d688ffa054 /drivers/net/ethernet/cadence/macb.h | |
parent | 79293f49677e2e703ef0d0efc9919319adacb3fb (diff) | |
download | linux-a8ee4dc1b5937ef60e04e11c6dd6039099d1069d.tar.xz |
net: macb: Add separate definition for PPM fraction
The scaled ppm parameter passed to _adjfine() contains a 16 bit
fraction. This just happens to be the same as SUBNSINCR_SIZE now.
Hence define this separately.
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 6ff123da6a14..b3b2a00b620d 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -834,6 +834,9 @@ struct gem_tx_ts { /* limit RX checksum offload to TCP and UDP packets */ #define GEM_RX_CSUM_CHECKED_MASK 2 +/* Scaled PPM fraction */ +#define PPM_FRACTION 16 + /* struct macb_tx_skb - data about an skb which is being transmitted * @skb: skb currently being transmitted, only set for the last buffer * of the frame |