24 May, 2016

1 commit


11 Sep, 2015

1 commit


01 Apr, 2015

1 commit

  • This driver is 64 bit only, and so this driver and device are ready
    for 2038. This patch changes the driver to the new PHC and also
    carries the timespec64 parameter on out to the gxio_mpipe_get-
    set_timestamp functions, making explicit the fact that the tv_sec
    field is 64 bits wide.

    Not even compile tested.

    Signed-off-by: Richard Cochran
    Acked-by: Chris Metcalf
    Signed-off-by: David S. Miller

    Richard Cochran
     

12 Nov, 2014

1 commit

  • 'gxio_mpipe_adjust_timestamp', 'gxio_mpipe_link_instance',
    'gxio_mpipe_get_timestamp', and 'gxio_mpipe_set_timestamp' may be use by
    other tile modules, so export them.

    The related error (with allmodconfig under tile):

    MODPOST 4002 modules
    ERROR: "gxio_mpipe_link_instance" [drivers/net/ethernet/tile/tile_net.ko] undefined!
    ERROR: "gxio_mpipe_get_timestamp" [drivers/net/ethernet/tile/tile_net.ko] undefined!
    ERROR: "gxio_mpipe_set_timestamp" [drivers/net/ethernet/tile/tile_net.ko] undefined!
    ERROR: "gxio_mpipe_adjust_timestamp" [drivers/net/ethernet/tile/tile_net.ko] undefined!

    Signed-off-by: Chen Gang
    Signed-off-by: Chris Metcalf

    Chen Gang
     

02 Oct, 2014

1 commit

  • Both strncpy and strlcpy suffer from the fact that they do
    partial copies of strings into the destination when the target
    buffer is too small. This is frequently pointless since an
    overflow of the target buffer may make the result invalid.

    strncpy() makes it relatively hard to even detect the error
    condition, and with strlcpy() you have to duplicate the buffer
    size parameter to test to see if the result exceeds it.
    By returning zero in the failure case, we both make testing
    for it easy, and by simply not copying anything in that case,
    we make it mandatory for callers to test the error code.

    To catch lazy programmers who don't check, we also place a NUL at
    the start of the destination buffer (if there is space) to
    ensure that the result is an invalid string.

    At some point it may make sense to promote strscpy() to
    a global platform-independent function, but other than the
    reviewers, no one was interested on LKML, so for now leave
    the strscpy() function as file-static.

    Reviewed-by: Randy Dunlap
    Reviewed-by: Rickard Strandqvist
    Signed-off-by: Chris Metcalf

    Chris Metcalf
     

02 Aug, 2013

2 commits


12 Jul, 2012

1 commit

  • The TILE-Gx chip includes a packet-processing network engine called
    mPIPE ("Multicore Programmable Intelligent Packet Engine"). This
    change adds support for using the mPIPE engine from within the
    kernel. The engine has more functionality than is exposed here,
    but to keep the kernel code and binary simpler, this is a subset
    of the full API designed to enable standard Linux networking only.

    Signed-off-by: Chris Metcalf

    Chris Metcalf