• Shannon Nelson's avatar
    ionic: catch no ptp support earlier · f79eef71
    Shannon Nelson authored
    If PTP configuration is attempted on ports that don't support
    it, such as VF ports, the driver will return an error status
    -95, or EOPNOSUPP and print an error message
        enp98s0: hwstamp set failed: -95
    
    Because some daemons can retry every few seconds, this can end
    up filling the dmesg log and pushing out other more useful
    messages.
    
    We can catch this issue earlier in our handling and return
    the error without a log message.
    
    Fixes: 829600ce ("ionic: add ts_config replay")
    Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f79eef71
ionic_lif.h 9.77 KB