github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/patch/patch.sh (about) 1 #!/bin/bash 2 set -ex 3 4 git config user.name "John Doe" 5 git config 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 # NSM cherry picks 16 git_cherry_pick refs/changes/03/39503/1 # 39503: vppinfra: fix setns typo | https://gerrit.fd.io/r/c/vpp/+/39503 17 git_cherry_pick refs/changes/28/39528/9 # 39528: ping: Simple binary API for running ping based on events | https://gerrit.fd.io/r/c/vpp/+/39528 18 git_cherry_pick refs/changes/24/39824/1 # 39824: af_packet: remove UNIX_FILE_EVENT_EDGE_TRIGGERED flag | https://gerrit.fd.io/r/c/vpp/+/39824 19 git_cherry_pick refs/changes/19/40119/1 # 40119: af_packet: set next0 for AF_PACKET_IF_MODE_ETHERNET mode | https://gerrit.fd.io/r/c/vpp/+/40119 20 git_cherry_pick refs/changes/46/40246/9 # 40246: ping: Check only PING_RESPONSE_IP4 and PING_RESPONSE_IP6 events | https://gerrit.fd.io/r/c/vpp/+/40246 21 git_cherry_pick refs/changes/25/40325/2 # 40325: ping: Allow to specify a source interface in ping binary API | https://gerrit.fd.io/r/c/vpp/+/40325 22 # Calico cherry picks 23 git_cherry_pick refs/changes/26/34726/3 # 34726: interface: add buffer stats api | https://gerrit.fd.io/r/c/vpp/+/34726 24 25 # Copy Calico local patches 26 git clone -b v3.26.0 https://github.com/projectcalico/vpp-dataplane.git /vpp-dataplane/ 27 cp /vpp-dataplane/vpplink/generated/patches/* patch/ 28 29 if [ "$(ls ./patch/*.patch 2> /dev/null)" ]; then 30 git apply patch/*.patch 31 git add --all 32 git commit -m "misc patches" 33 fi