Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • drivers
  • net
  • tun.c
Find file BlameHistoryPermalink
  • Paolo Abeni's avatar
    tun: fix csum generation for tap devices · df10db98
    Paolo Abeni authored Jun 14, 2016
    The commit 34166093 ("tuntap: use common code for virtio_net_hdr
    and skb GSO conversion") replaced the tun code for header manipulation
    with the generic helpers. While doing so, it implictly moved the
    skb_partial_csum_set() invocation after eth_type_trans(), which
    invalidate the current gso start/offset values.
    Fix it by moving the helper invocation before the mac pulling.
    
    Fixes: 34166093
    
     ("tuntap: use common code for virtio_net_hdr and skb GSO conversion")
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    Acked-by: default avatarMike Rapoport <rppt@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    df10db98
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7