github.com/edwarnicke/govpp@v0.0.0-20230130211138-14ef5d20b1d0/patch/patch.sh (about)

     1  #!/bin/bash
     2  set -ex
     3  
     4  git config --global user.name "John Doe"
     5  git config --global user.email "johndoe@example.com"
     6  
     7  function git_cherry_pick ()
     8  {
     9  	refs=$1
    10  	git fetch "https://gerrit.fd.io/r/vpp" ${refs}
    11  	git cherry-pick FETCH_HEAD
    12  	git commit --amend -m "gerrit:${refs#refs/changes/*/} $(git log -1 --pretty=%B)"
    13  }
    14  
    15  # Calico cherry picks
    16  git_cherry_pick refs/changes/13/34713/4 # 34713: vppinfra: improve & test abstract socket | https://gerrit.fd.io/r/c/vpp/+/34713
    17  git_cherry_pick refs/changes/71/32271/16 # 32271: memif: add support for ns abstract sockets | https://gerrit.fd.io/r/c/vpp/+/32271
    18  git_cherry_pick refs/changes/34/34734/3 # 34734: memif: autogenerate socket_ids | https://gerrit.fd.io/r/c/vpp/+/34734
    19  git_cherry_pick refs/changes/26/34726/1 # 34726: interface: add buffer stats api | https://gerrit.fd.io/r/c/vpp/+/34726
    20  git_cherry_pick refs/changes/05/35805/2 # 35805: dpdk: add intf tag to dev{} subinput | https://gerrit.fd.io/r/c/vpp/+/35805
    21  
    22  # --------------- Dedicated plugins ---------------
    23  git_cherry_pick refs/changes/64/33264/7 # 33264: pbl: Port based balancer | https://gerrit.fd.io/r/c/vpp/+/33264
    24  git_cherry_pick refs/changes/88/31588/4 # 31588: cnat: [WIP] no k8s maglev from pods | https://gerrit.fd.io/r/c/vpp/+/31588
    25  git_cherry_pick refs/changes/83/28083/21 # 28083: acl: acl-plugin custom policies |  https://gerrit.fd.io/r/c/vpp/+/28083
    26  git_cherry_pick refs/changes/13/28513/28 # 25813: capo: Calico Policies plugin | https://gerrit.fd.io/r/c/vpp/+/28513
    27  # --------------- Dedicated plugins ---------------
    28  
    29  # NSM cherry-picks
    30  git_cherry_pick refs/changes/74/37274/5 # 37274: af_xdp: fix xdp socket create fail | https://gerrit.fd.io/r/c/vpp/+/37274
    31  git_cherry_pick refs/changes/63/37763/4 # 37763: wireguard: add local variable | https://gerrit.fd.io/r/c/vpp/+/37763
    32  git_cherry_pick refs/changes/01/38001/9 # 38001: wireguard: sending the first handshake | https://gerrit.fd.io/r/c/vpp/+/38001
    33  git_cherry_pick refs/changes/00/38000/4 # 38000: wireguard: update ESTABLISHED flag | https://gerrit.fd.io/r/c/vpp/+/38000
    34  
    35  if [ "$(ls ./patch/*.patch 2> /dev/null)" ]; then
    36    git apply patch/*.patch
    37    git add --all
    38    git commit -m "misc patches"
    39  fi