• Catherine Sullivan's avatar
    gve: Add support for raw addressing device option · 4944db80
    Catherine Sullivan authored
    Add support to describe device for parsing device options. As
    the first device option, add raw addressing.
    
    "Raw Addressing" mode (as opposed to the current "qpl" mode) is an
    operational mode which allows the driver avoid bounce buffer copies
    which it currently performs using pre-allocated qpls (queue_page_lists)
    when sending and receiving packets.
    For egress packets, the provided skb data addresses will be dma_map'ed and
    passed to the device, allowing the NIC can perform DMA directly - the
    driver will not have to copy the buffer content into pre-allocated
    buffers/qpls (as in qpl mode).
    For ingress packets, copies are also eliminated as buffers are handed to
    the networking stack and then recycled or re-allocated as
    necessary, avoiding the use of skb_copy_to_linear_data().
    
    This patch only introduces the option to the driver.
    Subsequent patches will add the ingress and egress functionality.
    Reviewed-by: default avatarYangchun Fu <yangchun@google.com>
    Signed-off-by: default avatarCatherine Sullivan <csully@google.com>
    Signed-off-by: default avatarDavid Awogbemila <awogbemila@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4944db80
gve_adminq.h 7.54 KB