Skip to content
Permalink
Branch: master
Commits on Feb 14, 2020
  1. docs: fix link for Cilium-PR-Kubernetes-Upstream job

    tklauser authored and aanm committed Feb 13, 2020
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Feb 13, 2020
  1. Makefile: add target to update Go version in test scripts

    tklauser authored and aanm committed Feb 12, 2020
    Read the Go version from the GO_VERSION file and use it to replace the
    hard-coded versions in the test scripts.
    
    Together with the preceding commits, this allows to bump the Go version
    in a single place: the GO_VERSION file.
    
    Updating to a new Go version (1.13.8 in this example) is now as easy as:
    
      echo 1.13.8 > GO_VERSION && make update-golang
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  2. test: define variable for Go version

    tklauser authored and aanm committed Feb 12, 2020
    This will allow to easily bump the version via a Makefile target
    introduced in a successive commit.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  3. Documentation: read Go version from GO_VERSION file for development s…

    tklauser authored and aanm committed Feb 12, 2020
    …etup
    
    This avoids having to bump the Go version in the docs manually and also
    allows to get rid of the Go version check in Documentation/Makefile.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Feb 12, 2020
  1. client, identity: remove unnecessary guards around delete()

    tklauser authored and tgraf committed Feb 11, 2020
    From https://golang.org/pkg/builtin/#delete
    
    > If the map is nil or there is no such element, delete is a no-op.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Feb 6, 2020
  1. docs: properly format code in NFS configuration note

    tklauser authored and joestringer committed Feb 5, 2020
    Currently, the code is rendered without newlines and proper formatting.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Feb 3, 2020
  1. docs: add libelf-devel to development setup

    tklauser authored and borkmann committed Feb 3, 2020
    Otherwise I get the following error when building cilium:
    
      gcc -Wall -O2 -Wno-format-truncation -I include/ cilium-map-migrate.c -lelf -o cilium-map-migrate
    /usr/bin/ld: cannot find -lelf
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Sep 26, 2019
  1. pkg/bpf, pkg/endpoint/connector: use RLIM_INFINITY constant

    tklauser authored and ianvernon committed Sep 26, 2019
    Use the RLIM_INFINITY constant from golang.org/x/sys/unix for
    Setrlimit(RLIMIT_MEMLOCK, ...) which makes the intended purpose a bit
    clearer and also avoids a dependency on the "math" package.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Sep 5, 2018
  1. pkg/bpf: update BPF constants and structs as of Linux kernel 4.19-rc2

    tklauser authored and tgraf committed Sep 3, 2018
    Add newly added constants from linux/bpf.h (as of Linux kernel
    4.19-rc2) to pkg/bpf. Also update layout of the ProgInfo struct
    accordingly and drop the outdated github links to linux/bpf.h
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on May 2, 2018
  1. pkg/bpf: update BPF_* constants as of Linux kernel 4.17-rc3

    tklauser authored and ianvernon committed Apr 30, 2018
    Add newly added constants from linux/bpf.h (as of Linux kernel
    4.17-rc43) to pkg/bpf.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jan 23, 2018
  1. cilium-health: fix typo cilum-health -> cilium-health

    tklauser authored and tgraf committed Jan 23, 2018
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  2. Documentation: fix typo Cilum -> Cilium

    tklauser authored and tgraf committed Jan 23, 2018
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Oct 19, 2017
  1. Makefile, bpf/Makefile: silence error messages in 'clean-tags' target

    tklauser authored and tgraf committed Oct 19, 2017
    Silence the following error message which occur if the tag files don't
    exists:
    
      make[1]: Entering directory '/home/vagrant/go/src/github.com/cilium/cilium/bpf'
      rm cscope.out cscope.in.out cscope.po.out tags
      rm: cannot remove 'cscope.out': No such file or directory
      rm: cannot remove 'cscope.in.out': No such file or directory
      rm: cannot remove 'cscope.po.out': No such file or directory
      rm: cannot remove 'tags': No such file or directory
      Makefile:23: recipe for target 'clean-tags' failed
      make[1]: [clean-tags] Error 1 (ignored)
    
    Also ignore rm's exit status.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Oct 5, 2017
  1. vendor.conf: remove unused entry github/opencontainers/runc

    tklauser authored and tgraf committed Oct 5, 2017
    This fixes the following warning when running vndr:
    
    WARNING: package github.com/opencontainers/runc is unused, consider removing it from vendor.conf
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Sep 22, 2017
  1. all: remove unnecessary type conversions

    tklauser authored and tgraf committed Sep 22, 2017
    Generated using github.com/mdempsky/unconvert
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Sep 14, 2017
  1. pkg/bpf: avoid leaking C strings

    tklauser authored and scanf committed Sep 14, 2017
    C strings created using C.CString are allocated in the C heap using
    malloc. It is the callers responsibility to free them. See
    https://golang.org/cmd/cgo/#hdr-Go_references_to_C for details.
    
    Avoid leaking C strings in bpf.ObjPin and bpf.ObjGet by calling C.free
    accordingly.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Aug 18, 2017
  1. pkg/bpf: remove unnecessary PerfEvent.Read return value

    tklauser authored and tgraf committed Aug 18, 2017
    PerfEvent.Read always returns nil, so the error return value can be
    omitted.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Aug 8, 2017
  1. perf-event-test: use PERF_* constants from pkg/bpf

    tklauser authored and tgraf committed Aug 8, 2017
    Use the PERF_* constants defined in the bpf package (matching their
    C.PERF_* counterpart) instead of using the corresponding C constants.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  2. pkg/bpf: use pure go struct types for map/obj operations

    tklauser authored and tgraf committed Aug 8, 2017
    Avoid using cgo to create the bpf attr structs. Instead, add and use
    pure go struct types (with proper padding) exactly matching the memory
    layout of the anonymous structs in union bpf_attr. This, together with
    the previous commits allows to get rid of cgo in pkg/bpf/bpf.go
    entirely.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  3. pkg/bpf: don't rely on linux/bpf.h for BPF_* constants

    tklauser authored and tgraf committed Aug 8, 2017
    Currently pkg/bpf expects an up-to-date linux/bpf.h in order to define
    the constants necessary to create/update bpf maps. As long as it is
    compiled within cilium, the local version linux/bpf.h with all the
    necessary definitions is used. But if pkg/pbf is used outside of cilium
    itself, e.g. as part of the bpf-map tool, cgo will fall back to the
    linux/bpf.h header present on the system which might not contain
    all necessary constants/definitions.
    
    Work around this problem (and also reduce cilium's dependency on cgo) by
    defining all BPF_* constants locally in pkg/bpf.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  4. pkg/bpf: use ioctl wrapper from x/sys/unix

    tklauser authored and tgraf committed Aug 8, 2017
    Use unix.IoctlSetInt instead of manually implementing it using
    unix.Syscall. Also use the corresponding PERF_EVENT_IOC_* constants from
    the x/sys/unix package.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  5. pkg/bpf: use syscall numbers from x/sys/unix

    tklauser authored and tgraf committed Aug 8, 2017
    Use SYS_BPF and SYS_PERF_EVENT_OPEN from golang.org/x/sys/unix instead
    of their C/cgo counterparts.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  6. pkg/bpf: use RLIMIT_MEMLOCK from x/sys/unix

    tklauser authored and tgraf committed Aug 8, 2017
    Use the RLIMIT_MEMLOCK defined in golang.org/x/sys/unix instead of the
    corresponding C constant.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  7. vendor: update golang.org/x/sys

    tklauser authored and tgraf committed Aug 8, 2017
    Required to replace some constants currently imported via cgo.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Aug 7, 2017
  1. common/logging: handle errors from net.SplitHostPort

    tklauser authored and tgraf committed Aug 7, 2017
    When starting cilium-agent with an ill-formatted host/port combination,
    we get the following:
    
      $ cilium-agent --log-driver fluentd --log-opt fluentd.address=192.168.4.42-24224
      [...]
      strconv.Atoi: parsing \"\": invalid syntax
    
    Fix it by checking the err return value of net.SplitHostPort and calling
    logrus.Fatal accordingly. Now we get:
    
      $ cilium-agent --log-driver fluentd --log-opt fluentd.address=192.168.4.42-24224
      address 192.168.4.42-24224: missing port in address
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jul 27, 2017
  1. Makefile: allow to specify go command

    tklauser authored and tgraf committed Jul 26, 2017
    In order to build cilium with different go versions (e.g. beta or rc
    releases), allow to set the go command used by the Makefiles via the GO
    variable:
    
      $ make GO=go1.9rc1
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jul 12, 2017
  1. pkg/bpf: add new sock ops prog type

    tklauser authored and scanf committed Jul 12, 2017
    Add prog type ProgTypeSockOps to match BPF_PROG_TYPE_SOCK_OPS,
    introduced in the net-next tree in commit 40304b2a1567 ("bpf: BPF
    support for sock_ops").
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jul 6, 2017
  1. pkg/bpf: use ClockGettime from x/sys/unix instead of C wrapper

    tklauser authored and tgraf committed Jul 6, 2017
    Use unix.ClockGettime to implement GetMtime instead of using the
    corresponding cgo wrapper around clock_gettime.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jul 3, 2017
  1. pkg/bpf: explicitly include stdint.h

    tklauser authored and tgraf committed Jul 3, 2017
    The pkg/bpf/bpf.o uses C.uint64_t from the stdint.h C header but only
    implicitly includes it through other headers. Add an explicit include to
    avoid potential issues when other headers are changed.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jun 30, 2017
  1. pkg/bpf: get and store owner program type for maps

    tklauser authored and tgraf committed Jun 30, 2017
    Parse the owner_prog_type field from the map's fdinfo file and store it
    in MapInfo. Add the corresponding BPF program type enum and Stringer
    interface.
    
    At the moment, this is not needed for cilium itself but would be useful
    for the generic bpf-map tool which uses cilium's pkg/bpf.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  2. Fix broken links to Kubernetes docs

    tklauser authored and tgraf committed Jun 30, 2017
    Fix two broken links to the Kubernetes docs in Documenation and README files.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jun 22, 2017
  1. pkg/bpf: add wrapper constants for bpf map types and flags

    tklauser authored and tgraf committed Jun 22, 2017
    Add and use wrapper constants for BPF_MAP_TYPE_HASH,
    BPF_MAP_TYPE_LPM_TRIE and BPF_F_NO_PREALLOC to package bpf and use them
    across cilium. With this, users of cilum's bpf package will no longer
    need to manually include <linux/bpf.h> and import "C" in order to use
    these values. Now cgo integration are is only needed in pkg/bpf/bpf.go
    but not its importers.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  2. pkg/bpf: remove unnecessary cgo integration

    tklauser authored and tgraf committed Jun 22, 2017
    No C code is called from within pkg/bpf/map.go, so the cgo integration
    can be removed.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jun 20, 2017
  1. daemon: remove unnecessary cgo integration

    tklauser authored and scanf committed Jun 20, 2017
    No C code is called from within daemon/monitor.go, so the cgo
    integration can be removed.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Commits on Jun 9, 2017
  1. Documentation: update cilium version to 0.9.0 in admin guide

    tklauser authored and scanf committed Jun 9, 2017
    Also fix the release page link label.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Older
You can’t perform that action at this time.