lkml.org 
[lkml]   [2016]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH net-next v3 2/2] macb: Enable 1588 support in SAMA5Dx platforms.
    On Wed, Dec 07, 2016 at 08:21:52PM +0200, Andrei Pistirica wrote:
    > +static int gem_hwtst_set(struct net_device *netdev,
    > + struct ifreq *ifr, int cmd)
    > +{

    ...

    > + switch (config.rx_filter) {
    > + case HWTSTAMP_FILTER_NONE:
    > + if (priv->hwts_rx_en)
    > + priv->hwts_rx_en = 0;
    > + break;
    > + case HWTSTAMP_FILTER_PTP_V1_L4_EVENT:
    > + case HWTSTAMP_FILTER_PTP_V2_L4_EVENT:
    > + case HWTSTAMP_FILTER_PTP_V2_L2_EVENT:
    > + case HWTSTAMP_FILTER_ALL:
    > + case HWTSTAMP_FILTER_PTP_V1_L4_SYNC:
    > + case HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ:
    > + case HWTSTAMP_FILTER_PTP_V2_L2_SYNC:
    > + case HWTSTAMP_FILTER_PTP_V2_L4_SYNC:
    > + case HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ:
    > + case HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ:
    > + case HWTSTAMP_FILTER_PTP_V2_EVENT:
    > + case HWTSTAMP_FILTER_PTP_V2_SYNC:
    > + case HWTSTAMP_FILTER_PTP_V2_DELAY_REQ:
    > + config.rx_filter = HWTSTAMP_FILTER_ALL;

    Does the device really time stamp all packets?

    Or did you mean "all PTP packets? For that, use
    HWTSTAMP_FILTER_PTP_V2_EVENT.

    Thanks,
    Richard

    \
     
     \ /
      Last update: 2016-12-07 20:45    [W:4.716 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site